From ab667912cf19d17e749d13b1d9f428ab6ae55b93 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Tue, 29 Nov 2011 13:36:07 +0100 Subject: Code cleanup of HBAC, Sudo rules https://fedorahosted.org/freeipa/ticket/1515 --- install/ui/widget.js | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'install/ui/widget.js') 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($('', { + 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; -- cgit