mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
Removed reverse zones from host adder dialog.
The host adder dialog has been modified to specify the new flag for retrieving the forward zones only. Ticket #1458
This commit is contained in:
committed by
Adam Young
parent
571274e978
commit
538c7a7eb8
@@ -106,10 +106,8 @@ IPA.entity_factories.host = function () {
|
||||
height: 250,
|
||||
fields:[
|
||||
{
|
||||
factory: IPA.entity_select_widget,
|
||||
factory: IPA.dnszone_select_widget,
|
||||
name: 'fqdn',
|
||||
other_entity: 'dnszone',
|
||||
other_field: 'idnsname',
|
||||
label: IPA.messages.objects.service.host,
|
||||
editable: true,
|
||||
undo: false
|
||||
@@ -127,6 +125,27 @@ IPA.entity_factories.host = function () {
|
||||
build();
|
||||
};
|
||||
|
||||
IPA.dnszone_select_widget = function(spec) {
|
||||
|
||||
spec = spec || {};
|
||||
spec.other_entity = 'dnszone';
|
||||
spec.other_field = 'idnsname';
|
||||
|
||||
var that = IPA.entity_select_widget(spec);
|
||||
|
||||
that.create_search_command = function() {
|
||||
return IPA.command({
|
||||
entity: that.other_entity,
|
||||
method: 'find',
|
||||
args: [that.filter.val()],
|
||||
options: {
|
||||
forward_only: true
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return that;
|
||||
};
|
||||
|
||||
IPA.host_dnsrecord_entity_link_widget = function(spec){
|
||||
var that = IPA.entity_link_widget(spec);
|
||||
|
||||
Reference in New Issue
Block a user