pve-manager/www/manager6/sdn/dns/PowerdnsEdit.js
Stefan Lendl e07191a081 ui: sdn: homogenize the casing of labels
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>
2023-11-06 18:17:45 +01:00

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();
},
});