diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-03 17:15:05 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2011-08-04 11:46:41 -0400 |
commit | 966fbd6485f3e2a1bc7fa4c3f96fcb435daa553d (patch) | |
tree | 6abce3a311ff75c6a73202045f98c5c717a5944e /install/ui/hbac.js | |
parent | 8495af1a50faca496fe2ce425b9b3a7f21ba1ea6 (diff) | |
download | freeipa-966fbd6485f3e2a1bc7fa4c3f96fcb435daa553d.tar.gz freeipa-966fbd6485f3e2a1bc7fa4c3f96fcb435daa553d.tar.xz freeipa-966fbd6485f3e2a1bc7fa4c3f96fcb435daa553d.zip |
Linked entries in HBAC/sudo details page.
The association tables in HBAC/sudo details page have been modified
to link the entries to the appropriate details page.
Ticket #1535
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 4e25123e4..0e775aa0b 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -203,14 +203,10 @@ IPA.hbacrule_details_facet = function(spec) { function user_category_section(){ - var param_info = IPA.get_entity_param('hbacrule', 'usercategory'); - var section = IPA.rule_details_section({ name: 'user', - entity:that.entity, - + entity: that.entity, label: IPA.messages.objects.hbacrule.user, - text: param_info.doc+':', field_name: 'usercategory', options: [ { value: 'all', label: IPA.messages.objects.hbacrule.anyone }, @@ -242,13 +238,10 @@ IPA.hbacrule_details_facet = function(spec) { } function hostcategory_section(){ - var param_info = IPA.get_entity_param('hbacrule', 'hostcategory'); - var section = IPA.rule_details_section({ name: 'host', label: IPA.messages.objects.hbacrule.host, - entity:that.entity, - text: param_info.doc+':', + entity: that.entity, field_name: 'hostcategory', options: [ { value: 'all', label: IPA.messages.objects.hbacrule.any_host }, @@ -280,13 +273,10 @@ IPA.hbacrule_details_facet = function(spec) { } function servicecategory_section(){ - var param_info = IPA.get_entity_param('hbacrule', 'servicecategory'); - var section = IPA.rule_details_section({ name: 'service', - entity:that.entity, + entity: that.entity, label: IPA.messages.objects.hbacrule.service, - text: param_info.doc+':', field_name: 'servicecategory', options: [ { value: 'all', @@ -294,7 +284,7 @@ IPA.hbacrule_details_facet = function(spec) { { value: '', label: IPA.messages.objects.hbacrule.specified_services } ], - 'tables': [ + tables: [ { field_name: 'memberservice_hbacsvc' }, { field_name: 'memberservice_hbacsvcgroup' } ] @@ -319,14 +309,10 @@ IPA.hbacrule_details_facet = function(spec) { } function sourcehostcategory_section(){ - - var param_info = IPA.get_entity_param('hbacrule', 'sourcehostcategory'); - var section = IPA.rule_details_section({ name: 'sourcehost', - entity:that.entity, + entity: that.entity, label: IPA.messages.objects.hbacrule.sourcehost, - text: param_info.doc+':', field_name: 'sourcehostcategory', options: [ { value: 'all', label: IPA.messages.objects.hbacrule.any_host }, |