mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2024-12-28 18:01:23 -06:00
d99ebc0f37
The UI framework has been extended to include a collection of widgets: - ipa_widget: base class - ipa_text_widget: text field - ipa_radio_widget: radio button - ipa_textarea_widget: textarea - ipa_button_widget: button - ipa_column_widget: column for table - ipa_table_widget: table These widgets can be used to create input controls. They can also be extended to create custom controls. The framework has also been enhanced to support custom layouts. This can be used to change the look of the application without changing the code. Initially this is only available in details section. Layout consists of a collection of HTML templates. Each template is a complete and valid HTML file representing a portion of a page. The template will be loaded and initialized by the code, then filled with the data from the server. The layouts are located in install/static/layouts/<name> folder. By default, if no templates are used, the fields in the details page are rendered vertically using dd/dt/dd tags. For pages that require different layout, a custom UI needs to be developed. There are two ways to do that: - write a custom widget to generate the UI dynamically - create an HTML template and write the initialization code For components that are quite complex or used frequently, it's might be better to use the first method. For simple pages that are used only in one location or need to support customization, the second method might be preferable. Other benefits of templates: - cleaner code and UI separation - more flexibility in customization - new pages can be developed quickly and require less coding - multiple templates can be used with the same initialization code - easier to maintain The HBAC details page has been implemented using both methods. By default it will use custom widgets to generate the page. To use a custom layout, add the following parameter to the URL, then reload the page: &layout=<name> Currently the only available layout is 'default' which produces the same look as the custom widgets. The HBAC details page is usable, but it still needs additional work. The access time is not working yet. There is no undo button, hint, or validation yet. The table in the association facet has also been changed to use ipa_association_widget which is derived from ipa_table_widget. The Makefile has been updated to include the layouts. The unit tests have been updated as well. |
||
---|---|---|
.. | ||
layouts | ||
test | ||
add.js | ||
associate.js | ||
certificate.js | ||
details.js | ||
develop.js | ||
entity.js | ||
gray-fade-line.png | ||
group.js | ||
hbac.js | ||
header_background.png | ||
header_logo.png | ||
header.png | ||
host.js | ||
hostgroup.js | ||
index.xhtml | ||
ipa_logo_180x50.png | ||
ipa.css | ||
ipa.js | ||
ipalogo.png | ||
jquery-ui.css | ||
jquery-ui.js | ||
jquery.ba-bbq.js | ||
jquery.cookie.js | ||
jquery.js | ||
json2.js | ||
Mainnav-background.png | ||
Mainnav-offtab.png | ||
Mainnav-ontab.png | ||
Mainnav-seperatorbars.png | ||
Makefile.am | ||
navigation.js | ||
netgroup.js | ||
policy.js | ||
search.js | ||
serverconfig.js | ||
service.js | ||
Subnav-background.png | ||
Subnav-offbutton.png | ||
Subnav-onbutton.png | ||
ui-bg_flat_65_ffffff_40x100.png | ||
ui-bg_glass_40_111111_1x400.png | ||
ui-bg_glass_55_1c1c1c_1x400.png | ||
ui-bg_highlight-hard_40_aaaaaa_1x100.png | ||
ui-bg_highlight-hard_100_f9f9f9_1x100.png | ||
ui-bg_highlight-soft_50_aaaaaa_1x100.png | ||
ui-bg_inset-hard_45_cd0a0a_1x100.png | ||
ui-bg_inset-hard_55_ffeb80_1x100.png | ||
ui-bg_loop_8_333333_21x21.png | ||
ui-icons_4ca300_256x240.png | ||
ui-icons_222222_256x240.png | ||
ui-icons_bbbbbb_256x240.png | ||
ui-icons_ededed_256x240.png | ||
ui-icons_ffcf29_256x240.png | ||
ui-icons_ffffff_256x240.png | ||
user.js | ||
webui.js | ||
widget.js |