From d08dcb40e1db63d4b40d911bb15a656f0dcbf8ae Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 5 Aug 2011 10:15:53 -0500 Subject: Fixed facet group labels. The facet group labels have been modified according to UXD spec. Some facet groups will have more descriptive labels. Some others will not have any labels because the facet tab is self-explanatory. Ticket #1423, #1561 --- install/ui/aci.js | 11 ++++++++++- install/ui/automount.js | 6 ++++-- install/ui/dns.js | 3 ++- install/ui/entitle.js | 5 +---- install/ui/entity.js | 27 ++++++++++++--------------- install/ui/test/data/ipa_init.json | 9 +++------ 6 files changed, 32 insertions(+), 29 deletions(-) (limited to 'install') diff --git a/install/ui/aci.js b/install/ui/aci.js index 9c1188afb..112bff233 100644 --- a/install/ui/aci.js +++ b/install/ui/aci.js @@ -27,6 +27,7 @@ IPA.entity_factories.permission = function() { return IPA.entity_builder(). entity('permission'). + facet_groups([ 'privilege' , 'settings' ]). search_facet({ columns:['cn'] }). @@ -48,7 +49,10 @@ IPA.entity_factories.permission = function() { factory:IPA.target_section, label: IPA.messages.objects.permission.target }]}). - standard_association_facets(). + association_facet({ + name: 'member_privilege', + facet_group: 'privilege' + }). adder_dialog({ width: 500, height: 400, @@ -73,6 +77,7 @@ IPA.entity_factories.permission = function() { IPA.entity_factories.privilege = function() { return IPA.entity_builder(). entity('privilege'). + facet_groups([ 'role', 'settings', 'permission' ]). search_facet({ columns:['cn','description']}). details_facet({ @@ -84,12 +89,14 @@ IPA.entity_factories.privilege = function() { }]}). association_facet({ name: 'member_role', + facet_group: 'role', add_method: 'add_privilege', remove_method: 'remove_privilege', associator: IPA.serial_associator }). association_facet({ name: 'memberof_permission', + facet_group: 'permission', add_method: 'add_permission', remove_method: 'remove_permission' }). @@ -105,6 +112,7 @@ IPA.entity_factories.privilege = function() { IPA.entity_factories.role = function() { return IPA.entity_builder(). entity('role'). + facet_groups([ 'member', 'settings', 'privilege' ]). search_facet({ columns:['cn','description']}). details_facet({sections:[ @@ -114,6 +122,7 @@ IPA.entity_factories.role = function() { fields:['cn','description']}]}). association_facet({ name: 'memberof_privilege', + facet_group: 'privilege', add_method: 'add_privilege', remove_method: 'remove_privilege' }). diff --git a/install/ui/automount.js b/install/ui/automount.js index 56c6c9cee..dc0ca4e67 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -29,12 +29,13 @@ IPA.entity_factories.automountlocation = function() { return IPA.entity_builder(). entity({ name: 'automountlocation' }). + facet_groups([ 'automountmap', 'settings' ]). search_facet({ title: IPA.metadata.objects.automountlocation.label, columns:['cn'] }). nested_search_facet({ - facet_group: 'member', + facet_group: 'automountmap', nested_entity : 'automountmap', label : IPA.metadata.objects.automountmap.label, name: 'maps', @@ -58,8 +59,9 @@ IPA.entity_factories.automountmap = function() { return IPA.entity_builder(). entity({ name: 'automountmap' }). containing_entity('automountlocation'). + facet_groups([ 'automountkey', 'settings' ]). nested_search_facet({ - facet_group: 'member', + facet_group: 'automountkey', nested_entity : 'automountkey', label : IPA.metadata.objects.automountkey.label, name: 'keys', diff --git a/install/ui/dns.js b/install/ui/dns.js index 12c5ff69b..a5ebc2c4e 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -35,6 +35,7 @@ IPA.entity_factories.dnszone = function() { return IPA.entity_builder(). entity('dnszone'). + facet_groups([ 'dnsrecord', 'settings' ]). search_facet({ title: IPA.metadata.objects.dnszone.label, columns:['idnsname'] @@ -58,7 +59,7 @@ IPA.entity_factories.dnszone = function() { 'idnsupdatepolicy']}] }). nested_search_facet({ - facet_group: 'member', + facet_group: 'dnsrecord', nested_entity : 'dnsrecord', name: 'records', title: IPA.metadata.objects.dnszone.label_singular, diff --git a/install/ui/entitle.js b/install/ui/entitle.js index 15fbf2358..2687f6f95 100644 --- a/install/ui/entitle.js +++ b/install/ui/entitle.js @@ -38,10 +38,7 @@ IPA.entity_factories.entitle = function() { factory: IPA.entitle.entity, name: 'entitle' }). - facet_groups([ - { name: 'account', label: IPA.messages.objects.entitle.account }, - { name: 'certificates', label: IPA.messages.objects.entitle.certificates } - ]). + facet_groups([ 'account', 'certificates' ]). details_facet({ factory: IPA.entitle.details_facet, label: IPA.messages.objects.entitle.account, diff --git a/install/ui/entity.js b/install/ui/entity.js index 599cde65b..6317eebf5 100644 --- a/install/ui/entity.js +++ b/install/ui/entity.js @@ -265,8 +265,7 @@ IPA.facet_header = function(spec) { }).appendTo(container); $('
', { - 'class': 'facet-group-label', - text: facet_group.label + 'class': 'facet-group-label' }).appendTo(section); var ul = $('