mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Code cleanup of HBAC, Sudo rules
https://fedorahosted.org/freeipa/ticket/1515
This commit is contained in:
committed by
Endi S. Dewata
parent
fdee0892f1
commit
ab667912cf
@@ -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;
|
||||
|
Reference in New Issue
Block a user