summaryrefslogtreecommitdiffstats
path: root/install/ui/sudo.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2011-09-16 10:32:28 -0500
committerEndi S. Dewata <edewata@redhat.com>2011-09-21 22:15:04 +0000
commitb2a3c6e0934b10dd3bf96d54746e1ab783da0cc9 (patch)
tree6d5d8fa11da98f0bc25b3cd9e0b6a15d0e881217 /install/ui/sudo.js
parent3963687cde0552732259afa6fcf1393f56753423 (diff)
downloadfreeipa.git-b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9.tar.gz
freeipa.git-b2a3c6e0934b10dd3bf96d54746e1ab783da0cc9.tar.xz
freeipa.git-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/ui/sudo.js')
-rw-r--r--install/ui/sudo.js26
1 files changed, 18 insertions, 8 deletions
diff --git a/install/ui/sudo.js b/install/ui/sudo.js
index 6b17e89a..c9e7cdaf 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;
}