mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-15 00:24:03 +00:00

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com> Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
43 lines
807 B
JavaScript
43 lines
807 B
JavaScript
Ext.define('PVE.storage.DirInputPanel', {
|
|
extend: 'PVE.panel.StorageBase',
|
|
|
|
onlineHelp: 'storage_directory',
|
|
|
|
initComponent: function() {
|
|
var me = this;
|
|
|
|
me.column1 = [
|
|
{
|
|
xtype: me.isCreate ? 'textfield' : 'displayfield',
|
|
name: 'path',
|
|
value: '',
|
|
fieldLabel: gettext('Directory'),
|
|
allowBlank: false,
|
|
},
|
|
{
|
|
xtype: 'pveContentTypeSelector',
|
|
name: 'content',
|
|
value: 'images',
|
|
multiSelect: true,
|
|
fieldLabel: gettext('Content'),
|
|
allowBlank: false,
|
|
},
|
|
];
|
|
|
|
me.column2 = [
|
|
{
|
|
xtype: 'proxmoxcheckbox',
|
|
name: 'shared',
|
|
uncheckedValue: 0,
|
|
fieldLabel: gettext('Shared'),
|
|
autoEl: {
|
|
tag: 'div',
|
|
'data-qtip': gettext('Enable if the underlying file system is already shared between nodes.'),
|
|
},
|
|
},
|
|
];
|
|
|
|
me.callParent();
|
|
},
|
|
});
|