Commit aeb64e52 authored by Dietmar Maurer's avatar Dietmar Maurer

lxc GUI: add DNS panel to create wizard.

parent 9dc60ef5
......@@ -147,6 +147,51 @@ Ext.define('PVE.lxc.CreateWizard', {
title: gettext('Resources')
},
networkpanel,
{
xtype: 'inputpanel',
title: gettext('DNS'),
column1: [
{
xtype: 'pvetextfield',
name: 'searchdomain',
skipEmptyText: true,
fieldLabel: gettext('DNS domain'),
emptyText: 'use host settings',
allowBlank: true,
listeners: {
change: function(f, value) {
if (!me.rendered) {
return;
}
var field = me.down('#dns1');
field.setDisabled(!value);
field.clearInvalid();
field = me.down('#dns2');
field.setDisabled(!value);
field.clearInvalid();
}
}
},
{
xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 1",
vtype: 'IPAddress',
allowBlank: true,
disabled: true,
name: 'nameserver',
itemId: 'dns1'
},
{
xtype: 'pvetextfield',
fieldLabel: gettext('DNS server') + " 2",
vtype: 'IPAddress',
skipEmptyText: true,
disabled: true,
name: 'nameserver',
itemId: 'dns2'
}
]
},
{
title: gettext('Confirm'),
layout: 'fit',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment