ui: datastore edit: avoid an extra indentation level

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-07-14 10:56:19 +02:00
parent 757d0ccc76
commit 67042466e8
1 changed files with 114 additions and 120 deletions

View File

@ -21,134 +21,128 @@ Ext.define('PBS.DataStoreEdit', {
return {}; return {};
}, },
items: [ items: {
{ xtype: 'tabpanel',
xtype: 'tabpanel', bodyPadding: 10,
bodyPadding: 10, items: [
items: [ {
{ title: gettext('General'),
title: gettext('General'), xtype: 'inputpanel',
xtype: 'inputpanel', column1: [
column1: [ {
{ xtype: 'pmxDisplayEditField',
xtype: 'pmxDisplayEditField', cbind: {
cbind: { editable: '{isCreate}',
editable: '{isCreate}',
},
name: 'name',
allowBlank: false,
fieldLabel: gettext('Name'),
}, },
{ name: 'name',
xtype: 'pmxDisplayEditField', allowBlank: false,
cbind: { fieldLabel: gettext('Name'),
editable: '{isCreate}', },
}, {
name: 'path', xtype: 'pmxDisplayEditField',
allowBlank: false, cbind: {
fieldLabel: gettext('Backing Path'), editable: '{isCreate}',
emptyText: gettext('An absolute path'),
}, },
], name: 'path',
allowBlank: false,
column2: [ fieldLabel: gettext('Backing Path'),
{ emptyText: gettext('An absolute path'),
xtype: 'proxmoxtextfield', },
name: 'gc-schedule', ],
fieldLabel: gettext("GC Schedule"), column2: [
cbind: { {
deleteEmpty: '{!isCreate}', xtype: 'proxmoxtextfield',
}, name: 'gc-schedule',
fieldLabel: gettext("GC Schedule"),
cbind: {
deleteEmpty: '{!isCreate}',
}, },
{ },
xtype: 'proxmoxtextfield', {
name: 'prune-schedule', xtype: 'proxmoxtextfield',
fieldLabel: gettext("Prune Schedule"), name: 'prune-schedule',
cbind: { fieldLabel: gettext("Prune Schedule"),
deleteEmpty: '{!isCreate}', cbind: {
}, deleteEmpty: '{!isCreate}',
}, },
], },
],
columnB: [ columnB: [
{ {
xtype: 'textfield', xtype: 'textfield',
name: 'comment', name: 'comment',
fieldLabel: gettext('Comment'), fieldLabel: gettext('Comment'),
},
],
},
{
title: gettext('Prune Options'),
xtype: 'inputpanel',
column1: [
{
xtype: 'proxmoxintegerfield',
fieldLabel: gettext('Keep Last'),
name: 'keep-last',
cbind: {
deleteEmpty: '{!isCreate}',
}, },
], minValue: 1,
}, allowBlank: true,
{ },
title: gettext('Prune Options'), {
xtype: 'inputpanel', xtype: 'proxmoxintegerfield',
column1: [ fieldLabel: gettext('Keep Daily'),
{ name: 'keep-daily',
xtype: 'proxmoxintegerfield', cbind: {
fieldLabel: gettext('Keep Last'), deleteEmpty: '{!isCreate}',
name: 'keep-last',
cbind: {
deleteEmpty: '{!isCreate}',
},
minValue: 1,
allowBlank: true,
}, },
{ minValue: 1,
xtype: 'proxmoxintegerfield', allowBlank: true,
fieldLabel: gettext('Keep Daily'), },
name: 'keep-daily', {
cbind: { xtype: 'proxmoxintegerfield',
deleteEmpty: '{!isCreate}', fieldLabel: gettext('Keep Monthly'),
}, name: 'keep-monthly',
minValue: 1, cbind: {
allowBlank: true, deleteEmpty: '{!isCreate}',
}, },
{ minValue: 1,
xtype: 'proxmoxintegerfield', allowBlank: true,
fieldLabel: gettext('Keep Monthly'), },
name: 'keep-monthly', ],
cbind: { column2: [
deleteEmpty: '{!isCreate}', {
}, xtype: 'proxmoxintegerfield',
minValue: 1, fieldLabel: gettext('Keep Hourly'),
allowBlank: true, name: 'keep-hourly',
cbind: {
deleteEmpty: '{!isCreate}',
}, },
], minValue: 1,
allowBlank: true,
column2: [ },
{ {
xtype: 'proxmoxintegerfield', xtype: 'proxmoxintegerfield',
fieldLabel: gettext('Keep Hourly'), fieldLabel: gettext('Keep Weekly'),
name: 'keep-hourly', name: 'keep-weekly',
cbind: { cbind: {
deleteEmpty: '{!isCreate}', deleteEmpty: '{!isCreate}',
},
minValue: 1,
allowBlank: true,
}, },
{ minValue: 1,
xtype: 'proxmoxintegerfield', allowBlank: true,
fieldLabel: gettext('Keep Weekly'), },
name: 'keep-weekly', {
cbind: { xtype: 'proxmoxintegerfield',
deleteEmpty: '{!isCreate}', fieldLabel: gettext('Keep Yearly'),
}, name: 'keep-yearly',
minValue: 1, cbind: {
allowBlank: true, deleteEmpty: '{!isCreate}',
}, },
{ minValue: 1,
xtype: 'proxmoxintegerfield', allowBlank: true,
fieldLabel: gettext('Keep Yearly'), },
name: 'keep-yearly', ],
cbind: { },
deleteEmpty: '{!isCreate}', ],
}, },
minValue: 1,
allowBlank: true,
},
],
}
]
}
],
}); });