diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-07-21 02:54:07 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-07-21 11:47:57 -0400 |
commit | 4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf (patch) | |
tree | 5b34f511d3be1e86a2fb69259e958d9d3b99c01c /install/ui/sudo.js | |
parent | b5fe1e8f615271f4f71826b83e51f5e3abd277a6 (diff) | |
download | freeipa.git-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.tar.gz freeipa.git-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.tar.xz freeipa.git-4ff959f55d4aa0a6a832821ed19ecbb9a05dbbbf.zip |
Removed custom layouts using HTML templates.
The code for supporting custom layouts using HTML templates has been
removed. If it's needed again in the future the code can be restored.
Ticket #1501
Diffstat (limited to 'install/ui/sudo.js')
-rw-r--r-- | install/ui/sudo.js | 32 |
1 files changed, 6 insertions, 26 deletions
diff --git a/install/ui/sudo.js b/install/ui/sudo.js index fecb0b07..30479fb1 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -263,21 +263,11 @@ IPA.sudorule_details_facet = function(spec) { var that = IPA.details_facet(spec); - var section; - - if (IPA.layout) { - section = that.create_section({ - 'name': 'general', - 'label': IPA.messages.details.general, - 'template': 'sudorule-details-general.html #contents' - }); - } else { - section = IPA.sudo.rule_details_general_section({ - 'name': 'general', - 'label': IPA.messages.details.general - }); - that.add_section(section); - } + var section = IPA.sudo.rule_details_general_section({ + 'name': 'general', + 'label': IPA.messages.details.general + }); + that.add_section(section); section.text({name: 'cn', read_only: true}); section.textarea({name: 'description'}); @@ -929,8 +919,6 @@ IPA.sudo.rule_details_command_section = function(spec) { that.create = function(container) { - if (that.template) return; - var field = that.get_field('cmdcategory'); var param_info = IPA.get_entity_param(that.entity_name, 'cmdcategory'); @@ -1098,8 +1086,6 @@ IPA.sudo.rule_details_runas_section = function(spec) { that.create = function(container) { - if (that.template) return; - var field = that.get_field('ipasudorunasusercategory'); var param_info = IPA.get_entity_param(that.entity_name, 'ipasudorunasusercategory'); @@ -1287,18 +1273,12 @@ IPA.sudorule_association_table_widget = function(spec) { var label = IPA.metadata.objects[that.other_entity].label; var title = 'Add '+label+' to '+that.entity_name+' '+pkey; - var template; - if (IPA.layout) { - template = 'sudorule-'+that.other_entity+'-dialog.html #contents'; - } - return IPA.sudo.rule_association_adder_dialog({ 'title': title, 'entity_name': that.entity_name, 'pkey': pkey, 'other_entity': that.other_entity, - 'external': that.external, - 'template': template + 'external': that.external }); }; |