mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-09-03 20:52:56 -05:00
dns container
the dns records page was adding controls to the wrong tag. This pushes everything down one level, fixing the formatting.
This commit is contained in:
+33
-25
@@ -276,30 +276,21 @@ IPA.records_facet = function (spec){
|
|||||||
};
|
};
|
||||||
|
|
||||||
function create(container) {
|
function create(container) {
|
||||||
|
|
||||||
|
container.attr('title', that.entity_name);
|
||||||
|
|
||||||
|
$('<h1/>',{
|
||||||
|
}).append(IPA.create_network_spinner()).
|
||||||
|
appendTo(container);
|
||||||
|
|
||||||
var details = $('<div/>', {
|
var details = $('<div/>', {
|
||||||
'class': 'content'
|
'class': 'content'
|
||||||
}).appendTo(container);
|
}).appendTo(container);
|
||||||
}
|
|
||||||
|
|
||||||
function setup(container){
|
|
||||||
|
|
||||||
that.facet_setup(container);
|
|
||||||
|
|
||||||
that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
|
|
||||||
that.record = $.bbq.getState(that.entity_name + '-record', true) || '';
|
|
||||||
|
|
||||||
that.container.attr('title', that.entity_name);
|
|
||||||
|
|
||||||
var h2 = $('<h2></h2>',{
|
|
||||||
text: "Records for DNS Zone:" + that.pkey
|
|
||||||
}).appendTo(that.container);
|
|
||||||
|
|
||||||
|
|
||||||
var div = $('<div class="search-controls"></div>').
|
var div = $('<div class="search-controls"></div>').
|
||||||
appendTo(that.container);
|
appendTo(details);
|
||||||
|
|
||||||
var control_span =$('<span class="record-filter"></span>').appendTo(div);
|
var control_span =$('<span class="record-filter"></span>').appendTo(div);
|
||||||
|
|
||||||
control_span.append('Resource');
|
control_span.append('Resource');
|
||||||
control_span.append($('<input />',{
|
control_span.append($('<input />',{
|
||||||
type: "text",
|
type: "text",
|
||||||
@@ -311,13 +302,6 @@ IPA.records_facet = function (spec){
|
|||||||
|
|
||||||
create_type_select('dns-record-type-filter',true).
|
create_type_select('dns-record-type-filter',true).
|
||||||
appendTo(control_span);
|
appendTo(control_span);
|
||||||
//commented out until data is searchable
|
|
||||||
//control_span.append('Data');
|
|
||||||
//control_span.append($('<input />',{
|
|
||||||
// type: "text",
|
|
||||||
// id: 'dns-record-data-filter',
|
|
||||||
// name: 'search-' + obj_name + '-filter'
|
|
||||||
//}));
|
|
||||||
|
|
||||||
|
|
||||||
IPA.button({
|
IPA.button({
|
||||||
@@ -349,7 +333,7 @@ IPA.records_facet = function (spec){
|
|||||||
|
|
||||||
var records_results = $('<div/>', {
|
var records_results = $('<div/>', {
|
||||||
'class': 'records-results'
|
'class': 'records-results'
|
||||||
}).appendTo(that.container);
|
}).appendTo(details);
|
||||||
|
|
||||||
var records_table = $('<table/>', {
|
var records_table = $('<table/>', {
|
||||||
'class': 'search-table'
|
'class': 'search-table'
|
||||||
@@ -373,6 +357,30 @@ IPA.records_facet = function (spec){
|
|||||||
tr.append($('<th>Record Type</th>'));
|
tr.append($('<th>Record Type</th>'));
|
||||||
tr.append($('<th>Data</th>'));
|
tr.append($('<th>Data</th>'));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
function setup(container){
|
||||||
|
|
||||||
|
that.facet_setup(container);
|
||||||
|
|
||||||
|
that.pkey = $.bbq.getState(that.entity_name + '-pkey', true) || '';
|
||||||
|
that.record = $.bbq.getState(that.entity_name + '-record', true) || '';
|
||||||
|
|
||||||
|
|
||||||
|
$('h1',container).
|
||||||
|
html("<span id='headerpkey' />Records for DNS Zone:" + that.pkey);
|
||||||
|
|
||||||
|
|
||||||
|
//commented out until data is searchable
|
||||||
|
//control_span.append('Data');
|
||||||
|
//control_span.append($('<input />',{
|
||||||
|
// type: "text",
|
||||||
|
// id: 'dns-record-data-filter',
|
||||||
|
// name: 'search-' + obj_name + '-filter'
|
||||||
|
//}));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
refresh();
|
refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user