]>
git.proxmox.com Git - proxmox-backup.git/blob - www/window/SyncJobEdit.js
1c8a6656550ce11aabd0856ff0eb17f1ecda71ff
1 Ext
.define('PBS.window.SyncJobEdit', {
2 extend
: 'Proxmox.window.Edit',
3 alias
: 'widget.pbsSyncJobEdit',
4 mixins
: ['Proxmox.Mixin.CBind'],
10 subject
: gettext('SyncJob'),
12 fieldDefaults
: { labelWidth
: 120 },
14 cbindData: function(initialConfig
) {
17 let baseurl
= '/api2/extjs/config/sync';
18 let id
= initialConfig
.id
;
21 me
.url
= id
? `${baseurl}/${id}` : baseurl
;
22 me
.method
= id
? 'PUT' : 'POST';
31 fieldLabel
: gettext('Sync Job ID'),
32 xtype
: 'pmxDisplayEditField',
34 renderer
: Ext
.htmlEncode
,
38 editable
: '{isCreate}',
42 fieldLabel
: gettext('Source Remote'),
43 xtype
: 'pbsRemoteSelector',
48 fieldLabel
: gettext('Source Datastore'),
49 xtype
: 'proxmoxtextfield',
54 fieldLabel
: gettext('Local Datastore'),
55 xtype
: 'pbsDataStoreSelector',
63 fieldLabel
: gettext('Remove vanished'),
64 xtype
: 'proxmoxcheckbox',
65 name
: 'remove-vanished',
66 uncheckedValue
: false,
70 fieldLabel
: gettext('Schedule'),
71 xtype
: 'proxmoxtextfield',
73 emptyText
: gettext('none'),
75 deleteEmpty
: '{!isCreate}',
82 fieldLabel
: gettext('Comment'),
83 xtype
: 'proxmoxtextfield',
86 deleteEmpty
: '{!isCreate}',