diff options
author | Endi S. Dewata <edewata@redhat.com> | 2010-12-02 22:12:59 -0600 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2010-12-06 15:29:02 -0500 |
commit | 69e77212ea428f79742b9ff0452ef19d74cc76d4 (patch) | |
tree | 7e983cc373e099284743ff274e42cf0ac6ea8c19 /install/static/hbacsvcgroup.js | |
parent | 10f3c0825bfdffa6035e78066001eb3bdc759143 (diff) | |
download | freeipa.git-69e77212ea428f79742b9ff0452ef19d74cc76d4.tar.gz freeipa.git-69e77212ea428f79742b9ff0452ef19d74cc76d4.tar.xz freeipa.git-69e77212ea428f79742b9ff0452ef19d74cc76d4.zip |
HBAC Service Groups adjustments
The association facet for HBAC Service Groups has been removed
and replaced with an association table in the details page.
The ipa_association_table_widget has been modified to support
multiple columns in the table itself and in the adder dialog.
The ipa_association_adder_dialog and ipa_association_facet have
been refactored.
The ipa_sudorule_association_widget and ipa_rule_association_widget
has been removed because their functionalities have been merged into
ipa_association_table_widget.
Diffstat (limited to 'install/static/hbacsvcgroup.js')
-rwxr-xr-x | install/static/hbacsvcgroup.js | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/install/static/hbacsvcgroup.js b/install/static/hbacsvcgroup.js index 94a79c02..1972e6c5 100755 --- a/install/static/hbacsvcgroup.js +++ b/install/static/hbacsvcgroup.js @@ -31,7 +31,7 @@ function ipa_hbacsvcgroup() { that.create_association({ 'name': 'hbacsvc', 'add_method': 'add_member', - 'delete_method': 'remove_member' + 'remove_method': 'remove_member' }); var dialog = ipa_hbacsvcgroup_add_dialog({ @@ -53,13 +53,6 @@ function ipa_hbacsvcgroup() { }); that.add_facet(facet); - facet = ipa_hbacsvcgroup_member_hbacsvc_facet({ - 'name': 'member_hbacsvc', - 'label': IPA.metadata['hbacsvc'].label+' '+IPA.messages.association.members, - 'other_entity': 'hbacsvc' - }); - that.add_facet(facet); - that.entity_init(); }; @@ -152,17 +145,30 @@ function ipa_hbacsvcgroup_details_facet(spec) { section.create_field({ 'name': 'cn', 'label': 'Name' }); section.create_field({ 'name': 'description', 'label': 'Description' }); + section = ipa_details_section({ + 'name': 'services', + 'label': 'Services' + }); + that.add_section(section); + + var field = ipa_hbacsvcgroup_member_hbacsvc_table_widget({ + 'name': 'member_hbacsvc', + 'label': 'Services', + 'other_entity': 'hbacsvc' + }); + section.add_field(field); + that.details_facet_init(); }; return that; } -function ipa_hbacsvcgroup_member_hbacsvc_facet(spec) { +function ipa_hbacsvcgroup_member_hbacsvc_table_widget(spec) { spec = spec || {}; - var that = ipa_association_facet(spec); + var that = ipa_association_table_widget(spec); that.init = function() { @@ -197,7 +203,7 @@ function ipa_hbacsvcgroup_member_hbacsvc_facet(spec) { that.create_column({ name: 'description', label: 'Description', - width: '150px' + width: '350px' }); that.create_adder_column({ @@ -213,7 +219,7 @@ function ipa_hbacsvcgroup_member_hbacsvc_facet(spec) { width: '100px' }); - that.association_facet_init(); + that.association_table_widget_init(); }; return that; |