diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-09-16 10:32:28 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-09-21 22:15:04 +0000 |
commit | b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9 (patch) | |
tree | 6d5d8fa11da98f0bc25b3cd9e0b6a15d0e881217 /install | |
parent | 3963687cde0552732259afa6fcf1393f56753423 (diff) | |
download | freeipa-b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9.tar.gz freeipa-b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9.tar.xz freeipa-b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9.zip |
Fixed columns in HBAC/sudo rules list pages.
The following list pages were modified to show these columns only:
* HBAC rules: name, type, enabled, description
* Sudo rules: name, enabled, description
Ticket #1796
Diffstat (limited to 'install')
-rw-r--r-- | install/ui/hbac.js | 53 | ||||
-rw-r--r-- | install/ui/sudo.js | 26 |
2 files changed, 48 insertions, 31 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index e2873a787..bcc7c135d 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -27,29 +27,31 @@ IPA.entity_factories.hbacrule = function() { return IPA.entity_builder(). entity('hbacrule'). search_facet({ - search_all:true, - columns:['cn', - { - factory: IPA.column, - name:'accessruletype', - setup : function(container,record){ - container.empty(); - var value = record[this.name]; - value = value ? value.toString() : ''; - if (value === 'deny'){ - container.addClass('hbac-deny-rule'); - } - container.append(value); - } - }, - 'usercategory','hostcategory','ipaenabledflag', - 'servicecategory','sourcehostcategory'] + search_all: true, + columns: [ + 'cn', + { + factory: IPA.column, + name: 'accessruletype', + setup: function(container, record) { + container.empty(); + var value = record[this.name]; + value = value ? value.toString() : ''; + if (value === 'deny') { + container.addClass('hbac-deny-rule'); + } + container.append(value); + } + }, + 'ipaenabledflag', + 'description' + ] }). details_facet({ factory: IPA.hbacrule_details_facet }). adder_dialog({ - fields:['cn'] + fields: [ 'cn' ] }). build(); }; @@ -143,19 +145,24 @@ IPA.hbacrule_details_facet = function(spec) { function general_section(){ var section = IPA.details_table_section({ name: 'general', - entity:that.entity, + entity: that.entity, label: IPA.messages.details.general }); - section.text({name: 'cn', read_only: true}); + section.text({ + name: 'cn', + read_only: true + }); section.text({ name: 'accessruletype', - read_only:true + read_only: true + }); + section.textarea({ + name: 'description' }); - section.textarea({name: 'description'}); section.radio({ name: 'ipaenabledflag', - options:[ + options: [ { value: 'TRUE', label: IPA.get_message('true') }, { value: 'FALSE', label: IPA.get_message('false') } ] diff --git a/install/ui/sudo.js b/install/ui/sudo.js index 6b17e89ad..c9e7cdaf1 100644 --- a/install/ui/sudo.js +++ b/install/ui/sudo.js @@ -28,13 +28,17 @@ IPA.entity_factories.sudorule = function() { return IPA.entity_builder(). entity('sudorule'). search_facet({ - columns:['cn','description','cmdcategory'] + columns: [ + 'cn', + 'ipaenabledflag', + 'description' + ] }). details_facet({ factory: IPA.sudorule_details_facet }). adder_dialog({ - fields:['cn'] + fields: [ 'cn' ] }). build(); }; @@ -140,14 +144,20 @@ IPA.sudorule_details_facet = function(spec) { facet: that }); - section.text({name: 'cn', read_only: true}); - section.textarea({name: 'description'}); + section.text({ + name: 'cn', + read_only: true + }); + section.textarea({ + name: 'description' + }); section.radio({ name: 'ipaenabledflag', - options:[ - {'value': 'TRUE',label: IPA.messages['true']}, - {'value': 'FALSE',label:IPA.messages['false']} - ]}); + options: [ + { value: 'TRUE', label: IPA.get_message('true') }, + { value: 'FALSE', label: IPA.get_message('false') } + ] + }); return section; } |