summaryrefslogtreecommitdiffstats
path: root/install/ui/dns.js
diff options
context:
space:
mode:
authorAdam Young <ayoung@redhat.com>2011-04-11 14:49:36 -0400
committerAdam Young <ayoung@redhat.com>2011-04-26 16:49:23 -0400
commit1b12a282782173ce55e6bd7e1773a3b28686d81a (patch)
treec2ae570d16b375d92995fc77a187c77d951775da /install/ui/dns.js
parent6f7984a532057fa173b6a645e5eaf525066edd1a (diff)
downloadfreeipa-1b12a282782173ce55e6bd7e1773a3b28686d81a.tar.gz
freeipa-1b12a282782173ce55e6bd7e1773a3b28686d81a.tar.xz
freeipa-1b12a282782173ce55e6bd7e1773a3b28686d81a.zip
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.
Diffstat (limited to 'install/ui/dns.js')
-rw-r--r--install/ui/dns.js17
1 files changed, 10 insertions, 7 deletions
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('<span class="records-buttons"></span>');