mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-07-19 13:09:02 +00:00

use title case, or upper case for abbreviations, everywhere. Signed-off-by: Stefan Lendl <s.lendl@proxmox.com> [ TL: adapt commit subject to our style guides ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
53 lines
859 B
JavaScript
53 lines
859 B
JavaScript
Ext.define('PVE.sdn.dns.PowerdnsInputPanel', {
|
|
extend: 'PVE.panel.SDNDnsBase',
|
|
|
|
onlineHelp: 'pvesdn_dns_plugin_powerdns',
|
|
|
|
onGetValues: function(values) {
|
|
var me = this;
|
|
|
|
if (me.isCreate) {
|
|
values.type = me.type;
|
|
} else {
|
|
delete values.dns;
|
|
}
|
|
|
|
return values;
|
|
},
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
me.items = [
|
|
{
|
|
xtype: me.isCreate ? 'textfield' : 'displayfield',
|
|
name: 'dns',
|
|
maxLength: 10,
|
|
value: me.dns || '',
|
|
fieldLabel: 'ID',
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'textfield',
|
|
name: 'url',
|
|
fieldLabel: 'URL',
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'textfield',
|
|
name: 'key',
|
|
fieldLabel: gettext('API Key'),
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'proxmoxintegerfield',
|
|
name: 'ttl',
|
|
fieldLabel: 'TTL',
|
|
allowBlank: true,
|
|
},
|
|
];
|
|
|
|
me.callParent();
|
|
},
|
|
});
|