diff options
author | Endi S. Dewata <edewata@redhat.com> | 2011-08-19 10:20:40 -0500 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2011-08-23 16:12:05 +0000 |
commit | 68a345712c040d30e57d31a7881619567f7d35c5 (patch) | |
tree | 0e3461f44946069acff88ae34fb4e7d78aae5628 /install/ui/hbac.js | |
parent | 7879079ce2c984b8b7e450b1f9fbe223c5943602 (diff) | |
download | freeipa-68a345712c040d30e57d31a7881619567f7d35c5.tar.gz freeipa-68a345712c040d30e57d31a7881619567f7d35c5.tar.xz freeipa-68a345712c040d30e57d31a7881619567f7d35c5.zip |
Updated add and delete association dialog titles.
The association table widget and facet have been modified to accept
titles for the add and delete dialogs. The table and facet definitions
have been modified to specify the appropriate titles.
Some unused code have been removed.
Ticket #1629
Diffstat (limited to 'install/ui/hbac.js')
-rw-r--r-- | install/ui/hbac.js | 110 |
1 files changed, 48 insertions, 62 deletions
diff --git a/install/ui/hbac.js b/install/ui/hbac.js index 0e775aa0b..274c52d68 100644 --- a/install/ui/hbac.js +++ b/install/ui/hbac.js @@ -134,44 +134,6 @@ IPA.entity_factories.hbacsvcgroup = function() { build(); }; -IPA.hbacsvcgroup_member_hbacsvc_table_widget = function(spec) { - - spec = spec || {}; - - var that = IPA.association_table_widget(spec); - - - var column = that.create_column({ - name: 'cn', - primary_key: true, - width: '150px', - entity:that.entity, - link: true - }); - - that.create_column({ - name: 'description', - entity:that.entity, - - width: '350px' - }); - - that.create_adder_column({ - name: 'cn', - primary_key: true, - width: '100px' - }); - - that.create_adder_column({ - name: 'description', - width: '100px' - }); - - return that; -}; - - - IPA.hbacrule_details_facet = function(spec) { spec = spec || {}; @@ -224,15 +186,21 @@ IPA.hbacrule_details_facet = function(spec) { })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberuser_user', - name: 'memberuser_user', category: category, - other_entity: 'user', add_method: 'add_user', - remove_method: 'remove_user' + name: 'memberuser_user', + category: category, + add_method: 'add_user', + remove_method: 'remove_user', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberuser_group', - name: 'memberuser_group', category: category, - other_entity: 'group', add_method: 'add_user', - remove_method: 'remove_user' + name: 'memberuser_group', + category: category, + add_method: 'add_user', + remove_method: 'remove_user', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); return section; } @@ -259,15 +227,21 @@ IPA.hbacrule_details_facet = function(spec) { })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberhost_host', - name: 'memberhost_host', category: category, - other_entity: 'host', add_method: 'add_host', - remove_method: 'remove_host' + name: 'memberhost_host', + category: category, + add_method: 'add_host', + remove_method: 'remove_host', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberhost_hostgroup', - name: 'memberhost_hostgroup', category: category, - other_entity: 'hostgroup', add_method: 'add_host', - remove_method: 'remove_host' + name: 'memberhost_hostgroup', + category: category, + add_method: 'add_host', + remove_method: 'remove_host', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); return section; } @@ -295,15 +269,21 @@ IPA.hbacrule_details_facet = function(spec) { })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberservice_hbacsvc', - name: 'memberservice_hbacsvc', category: category, - other_entity: 'hbacsvc', add_method: 'add_service', - remove_method: 'remove_service' + name: 'memberservice_hbacsvc', + category: category, + add_method: 'add_service', + remove_method: 'remove_service', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-memberservice_hbacsvcgroup', - name: 'memberservice_hbacsvcgroup', category: category, - other_entity: 'hbacsvcgroup', add_method: 'add_service', - remove_method: 'remove_service' + name: 'memberservice_hbacsvcgroup', + category: category, + add_method: 'add_service', + remove_method: 'remove_service', + add_title: IPA.messages.association.add.member, + remove_title: IPA.messages.association.remove.member })); return section; } @@ -330,15 +310,21 @@ IPA.hbacrule_details_facet = function(spec) { })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-sourcehost_host', - name: 'sourcehost_host', category: category, - other_entity: 'host', add_method: 'add_sourcehost', - remove_method: 'remove_sourcehost' + name: 'sourcehost_host', + category: category, + add_method: 'add_sourcehost', + remove_method: 'remove_sourcehost', + add_title: IPA.messages.association.add.sourcehost, + remove_title: IPA.messages.association.remove.sourcehost })); section.add_field(IPA.rule_association_table_widget({ id: that.entity.name+'-sourcehost_hostgroup', - name: 'sourcehost_hostgroup', category: category, - other_entity: 'hostgroup', add_method: 'add_sourcehost', - remove_method: 'remove_sourcehost' + name: 'sourcehost_hostgroup', + category: category, + add_method: 'add_sourcehost', + remove_method: 'remove_sourcehost', + add_title: IPA.messages.association.add.sourcehost, + remove_title: IPA.messages.association.remove.sourcehost })); return section; } |