2020-05-29 08:53:40 +00:00
|
|
|
Ext.define('PBS.form.RemoteSelector', {
|
|
|
|
extend: 'Proxmox.form.ComboGrid',
|
|
|
|
alias: 'widget.pbsRemoteSelector',
|
|
|
|
|
|
|
|
allowBlank: false,
|
|
|
|
autoSelect: false,
|
|
|
|
valueField: 'name',
|
|
|
|
displayField: 'name',
|
|
|
|
|
|
|
|
store: {
|
|
|
|
model: 'pmx-remotes',
|
|
|
|
autoLoad: true,
|
|
|
|
sorters: 'name',
|
|
|
|
},
|
|
|
|
|
|
|
|
listConfig: {
|
|
|
|
columns: [
|
|
|
|
{
|
|
|
|
header: gettext('Remote'),
|
|
|
|
sortable: true,
|
|
|
|
dataIndex: 'name',
|
|
|
|
renderer: Ext.String.htmlEncode,
|
|
|
|
flex: 1,
|
|
|
|
},
|
|
|
|
{
|
|
|
|
header: gettext('Host'),
|
|
|
|
sortable: true,
|
|
|
|
dataIndex: 'host',
|
|
|
|
flex: 1,
|
|
|
|
},
|
|
|
|
{
|
2020-11-05 11:12:25 +00:00
|
|
|
header: gettext('Auth ID'),
|
2020-05-29 08:53:40 +00:00
|
|
|
sortable: true,
|
2020-11-05 11:12:25 +00:00
|
|
|
dataIndex: 'auth-id',
|
2020-05-29 08:53:40 +00:00
|
|
|
renderer: Ext.String.htmlEncode,
|
|
|
|
flex: 1,
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
|
|
|
});
|