ui: sync jobs: reorder fields

group local ones togeteher on the left side, and source + schedule
on the right side.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2020-11-04 19:05:46 +01:00
parent a797583535
commit 669fa672d9

View File

@ -12,6 +12,7 @@ Ext.define('PBS.window.SyncJobEdit', {
subject: gettext('SyncJob'), subject: gettext('SyncJob'),
fieldDefaults: { labelWidth: 120 }, fieldDefaults: { labelWidth: 120 },
defaultFocus: 'proxmoxtextfield[name=comment]',
cbindData: function(initialConfig) { cbindData: function(initialConfig) {
let me = this; let me = this;
@ -48,21 +49,6 @@ Ext.define('PBS.window.SyncJobEdit', {
value: '{datastore}', value: '{datastore}',
}, },
}, },
{
fieldLabel: gettext('Source Remote'),
xtype: 'pbsRemoteSelector',
allowBlank: false,
name: 'remote',
},
{
fieldLabel: gettext('Source Datastore'),
xtype: 'proxmoxtextfield',
allowBlank: false,
name: 'remote-store',
},
],
column2: [
{ {
fieldLabel: gettext('Local Owner'), fieldLabel: gettext('Local Owner'),
xtype: 'pbsUserSelector', xtype: 'pbsUserSelector',
@ -82,8 +68,23 @@ Ext.define('PBS.window.SyncJobEdit', {
uncheckedValue: false, uncheckedValue: false,
value: false, value: false,
}, },
],
column2: [
{ {
fieldLabel: gettext('Schedule'), fieldLabel: gettext('Source Remote'),
xtype: 'pbsRemoteSelector',
allowBlank: false,
name: 'remote',
},
{
fieldLabel: gettext('Source Datastore'),
xtype: 'proxmoxtextfield',
allowBlank: false,
name: 'remote-store',
},
{
fieldLabel: gettext('Sync Schedule'),
xtype: 'pbsCalendarEvent', xtype: 'pbsCalendarEvent',
name: 'schedule', name: 'schedule',
emptyText: gettext('none (disabled)'), emptyText: gettext('none (disabled)'),