From 1b12a282782173ce55e6bd7e1773a3b28686d81a Mon Sep 17 00:00:00 2001 From: Adam Young Date: Mon, 11 Apr 2011 14:49:36 -0400 Subject: action panel to top tabs replacing the action panel with the Design for 2.1 Significantly cleaned up implementation of intra-entity navigation requires additional CSS work still need to integrate the search controls onto each page cleaning up interface between entity and facet simplified nested tabs logic Fixed role navigation select default tab from the search widget fixed unit tests and jsl keep tabs area allocated set default tab selected whenever the pkey changes. Removing styling that is changing positions of buttons. The logic for that was for action-panel, but does not translate to entity-header. change from metadata name to label for I18N set selected tab in entity_init. Default title for entities without search and pkeys associations in table now link. remove colon from title when not showing pkey added Managed by facet group. Removed entities that are, for some reason, invalid. --- install/ui/dns.js | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'install/ui/dns.js') diff --git a/install/ui/dns.js b/install/ui/dns.js index 637b73446..f52a06429 100644 --- a/install/ui/dns.js +++ b/install/ui/dns.js @@ -26,6 +26,10 @@ /* DNS */ IPA.entity_factories.dnszone = function() { + if (!IPA.dns_enabled){ + throw "DNS not enabled on server"; + } + return IPA.entity_builder(). entity('dnszone'). search_facet({ @@ -50,6 +54,7 @@ IPA.entity_factories.dnszone = function() { facet({ factory: IPA.records_facet, 'name': 'records', + 'facet_group':'Member', 'label': IPA.metadata.objects.dnsrecord.label }). standard_association_facets(). @@ -356,23 +361,21 @@ IPA.records_facet = function (spec){ 'click': function(){refresh();} }).appendTo(control_span); - var action_panel = that.get_action_panel(); - var button = $('input[name=remove]', action_panel); + var buttons = that.entity_header.buttons; + + var button = $('input[name=remove]', buttons); that.remove_button = IPA.action_button({ label: IPA.messages.buttons.remove, icon: 'ui-icon-trash', click: function(){ delete_records(records_table); } - }); - button.replaceWith(that.remove_button); + }).appendTo(buttons); - button = $('input[name=add]', action_panel); that.add_button = IPA.action_button({ label: IPA.messages.buttons.add, icon: 'ui-icon-plus', click: add_click - }); - button.replaceWith(that.add_button); + }).appendTo(buttons); div.append(''); -- cgit