From 1636d649264348526012b1f699284ad728e8a43d Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 6 May 2011 17:04:09 -0400 Subject: automount UI automount implemented using standard facets and containing_entity pkey generation sample data fixtures for automount. messages for automount and HBAC. modified form of the search facet used to nest the automount entities Add works for nested entities. Delete works for all but keys. Since the API for this is going to change, I'm not going to fix it pre-checkin. All the places the PKEY prefix is needed uses a single function. Added breadcrumb trail into title. update ipa_init sample data add redirect logic for pages without pkeys. add and delete link to appropriate entities for nested search facet. Using on demand entities. Fixed breadcrumbs. --- install/ui/automount.js | 70 +++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 62 insertions(+), 8 deletions(-) (limited to 'install/ui/automount.js') diff --git a/install/ui/automount.js b/install/ui/automount.js index 527fed2d3..f865fe73f 100644 --- a/install/ui/automount.js +++ b/install/ui/automount.js @@ -28,20 +28,74 @@ IPA.entity_factories.automountlocation = function() { return IPA.entity_builder(). - entity('automountlocation'). + entity({name:'automountlocation', + title:IPA.messages.tabs.automount}). search_facet({ columns:['cn'] }). - details_facet({sections:[{ - name:'identity', - label: IPA.messages.details.identity, - fields:['cn'] - }]}). - standard_association_facets(). + nested_search_facet({ + facet_group: 'member', + nested_entity : 'automountmap', + label : IPA.metadata.objects.automountmap.label, + name: 'maps', + columns:['automountmapname'] + }). + details_facet({ + sections:[ + { + name:'identity', + label: IPA.messages.details.identity, + fields:['cn'] + } + ]}). adder_dialog({ fields:['cn'] }). build(); }; +IPA.entity_factories.automountmap = function() { + return IPA.entity_builder(). + entity({name:'automountmap', + title:IPA.messages.tabs.automount}). + containing_entity('automountlocation'). + nested_search_facet({ + facet_group: 'member', + nested_entity : 'automountkey', + label : IPA.metadata.objects.automountkey.label, + name: 'keys', + columns:['description'] + }). + details_facet({ + sections:[ + { + name:'identity', + label: IPA.messages.details.identity, + fields:['automountmapname','description'] + } + ] + }). + adder_dialog({ + fields:['automountmapname','description'] + }). + build(); +}; - +IPA.entity_factories.automountkey = function() { + return IPA.entity_builder(). + entity({name:'automountkey', + title:IPA.messages.tabs.automount}). + containing_entity('automountmap'). + details_facet({ + sections:[ + { + name:'identity', + label: IPA.messages.details.identity, + fields:['automountkey','automountinformation','description'] + } + ] + }). + adder_dialog({ + fields:['automountkey','automountinformation'] + }). + build(); +}; -- cgit