ui: tape: add form fields
this includes selectors for * Allocation Policy * Retention Policy * Drives * Changers * Tape Device Paths * Pools Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
committed by
Dietmar Maurer
parent
b03ec281bf
commit
c72fdb53ae
44
www/tape/form/PoolSelector.js
Normal file
44
www/tape/form/PoolSelector.js
Normal file
@ -0,0 +1,44 @@
|
||||
Ext.define('PBS.TapeManagement.PoolSelector', {
|
||||
extend: 'Proxmox.form.ComboGrid',
|
||||
alias: 'widget.pbsMediaPoolSelector',
|
||||
|
||||
allowBlank: false,
|
||||
displayField: 'name',
|
||||
valueField: 'name',
|
||||
autoSelect: false,
|
||||
|
||||
store: {
|
||||
proxy: {
|
||||
type: 'proxmox',
|
||||
url: '/api2/json/config/media-pool',
|
||||
},
|
||||
autoLoad: true,
|
||||
sorters: 'name',
|
||||
},
|
||||
|
||||
listConfig: {
|
||||
columns: [
|
||||
{
|
||||
text: gettext('Name'),
|
||||
dataIndex: 'name',
|
||||
},
|
||||
{
|
||||
text: gettext('Drive'),
|
||||
dataIndex: 'drive',
|
||||
},
|
||||
{
|
||||
text: gettext('Allocation'),
|
||||
dataIndex: 'allocation',
|
||||
},
|
||||
{
|
||||
text: gettext('Retention'),
|
||||
dataIndex: 'retention',
|
||||
},
|
||||
{
|
||||
text: gettext('Encryption Fingerprint'),
|
||||
dataIndex: 'encryption',
|
||||
},
|
||||
],
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user