freeipa/install/ui
Petr Vobornik f6707a71dc webui: hide user attributes for SMB services section if empty
This section should be hidded if user object hasn't ipantuserattrs
object class. I.e. when trusts are not enabled.

Web UI framework already supports hidding of sections if the
section contains no visible field. So to achieve it we simply needs
to hide the fields. Given that attributelevelrights
contains rights only for attributes of current object classes, all
of these are regarded as not writable.

We can leverage feature of input_widget that it gets hidden
when the attribute is not writable and has no value and widget's
"hidden_if_empty" is set to true. Thus doing it here.

For this to work, it is also required to fix an issue with
"ipanthomedirectorydrive" which is optional (in API) but Web UI
doesn't offer "empty" ("") value. Adding it here.

fixes: https://pagure.io/freeipa/issue/8336

Signed-off-by: Petr Vobornik <pvoborni@redhat.com>
Reviewed-By: Alexander Bokovoy <abokovoy@redhat.com>
Reviewed-By: Serhii Tsymbaliuk <stsymbal@redhat.com>
2020-06-16 11:39:55 +03:00
..
build WebUI: use python3-rjsmin to minify JavaScript files 2020-05-12 09:50:28 +02:00
css Debian: use -m lesscpy instead of hard-coded name 2019-04-24 14:08:20 +02:00
doc webui: topology graph facet 2015-11-27 15:50:56 +01:00
images Replace old login screen logo with new one 2018-08-21 17:38:32 +02:00
js Create symlink to qunit.js 2017-12-14 18:57:37 +01:00
less WebUI: Fix notification area layout 2019-11-21 16:44:11 +01:00
src webui: hide user attributes for SMB services section if empty 2020-06-16 11:39:55 +03:00
test Remove remains of unused config options 2020-06-02 09:39:42 +02:00
util WebUI: use python3-rjsmin to minify JavaScript files 2020-05-12 09:50:28 +02:00
favicon.ico Replace logo images with new one (version 4.7) 2018-08-13 14:25:06 +02:00
Gruntfile.js Make WebUI unit tests to generate results as JUnit 2018-03-16 14:26:48 +01:00
ie.css Fixed display of attributes_widget in IE9 2012-07-17 15:55:44 +02:00
index.html webui: add d3 library - version 3.5.6 2015-11-27 15:50:56 +01:00
ipa.css WebUI: Fix notification area layout 2019-11-21 16:44:11 +01:00
jsl.conf Fix javascript 'errors' found by jslint 2018-09-27 16:33:25 +02:00
Makefile.am Clean up reset_password.js file from project 2018-09-12 12:41:19 +02:00
package.json Add Gruntfile and package.json to ui directory 2017-12-14 18:57:37 +01:00
README-LICENSE.txt WebUI build: replace uglifyjs with system package 2018-07-12 15:38:01 +02:00
reset_password.html Use "login" plugin instead of standalone JS file 2018-09-12 12:41:19 +02:00
sync_otp.html webui: add sync_otp.html 2014-06-30 12:27:05 +02:00