diff options
author | Petr Vobornik <pvoborni@redhat.com> | 2011-11-29 13:36:07 +0100 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-12-05 16:01:44 +0000 |
commit | ab667912cf19d17e749d13b1d9f428ab6ae55b93 (patch) | |
tree | 2b00e180d2830a6bd673b83179141a6f355e3c17 /install/ui/widget.js | |
parent | fdee0892f12c98f5d03396c0d70e73d69b1a5ada (diff) | |
download | freeipa.git-ab667912cf19d17e749d13b1d9f428ab6ae55b93.tar.gz freeipa.git-ab667912cf19d17e749d13b1d9f428ab6ae55b93.tar.xz freeipa.git-ab667912cf19d17e749d13b1d9f428ab6ae55b93.zip |
Code cleanup of HBAC, Sudo rules
https://fedorahosted.org/freeipa/ticket/1515
Diffstat (limited to 'install/ui/widget.js')
-rw-r--r-- | install/ui/widget.js | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/install/ui/widget.js b/install/ui/widget.js index e6213951..49e65545 100644 --- a/install/ui/widget.js +++ b/install/ui/widget.js @@ -1951,6 +1951,36 @@ IPA.details_table_section_nc = function(spec) { return that; }; +IPA.enable_widget = function(spec) { + + spec = spec || {}; + + var that = IPA.radio_widget(spec); + + return that; +}; + + +IPA.header_widget = function(spec) { + + spec = spec || {}; + + var that = IPA.widget(spec); + + that.level = spec.level || 3; + that.text = spec.text; + that.description = spec.description; + + that.create = function(container) { + container.append($('<h'+that.level+' />', { + text: that.text, + title: that.description + })); + }; + + return that; +}; + IPA.observer = function(spec) { var that = {}; @@ -2151,3 +2181,4 @@ IPA.widget_factories['combobox'] = IPA.combobox_widget; IPA.widget_factories['link'] = IPA.link_widget; IPA.widget_factories['details_table_section'] = IPA.details_table_section; IPA.widget_factories['details_table_section_nc'] = IPA.details_table_section_nc; +IPA.widget_factories['enable'] = IPA.enable_widget; |