]>
git.proxmox.com Git - proxmox-backup.git/blob - www/window/RemoteEdit.js
1 Ext
.define('PBS.window.RemoteEdit', {
2 extend
: 'Proxmox.window.Edit',
3 alias
: 'widget.pbsRemoteEdit',
4 mixins
: ['Proxmox.Mixin.CBind'],
10 subject
: gettext('Remote'),
12 fieldDefaults
: { labelWidth
: 120 },
14 cbindData: function(initialConfig
) {
17 let baseurl
= '/api2/extjs/config/remote';
18 let name
= initialConfig
.name
;
21 me
.url
= name
? `${baseurl}/${name}` : baseurl
;
22 me
.method
= name
? 'PUT' : 'POST';
25 passwordEmptyText
: me
.isCreate
? '' : gettext('Unchanged'),
33 xtype
: 'pmxDisplayEditField',
35 fieldLabel
: gettext('Remote'),
36 renderer
: Ext
.htmlEncode
,
40 editable
: '{isCreate}',
44 xtype
: 'proxmoxtextfield',
47 fieldLabel
: gettext('Host'),
53 xtype
: 'proxmoxtextfield',
56 fieldLabel
: gettext('Userid'),
60 inputType
: 'password',
61 fieldLabel
: gettext('Password'),
64 emptyText
: '{passwordEmptyText}',
65 allowBlank
: '{!isCreate}',
72 xtype
: 'proxmoxtextfield',
74 fieldLabel
: gettext('Fingerprint'),