]> git.proxmox.com Git - proxmox-backup.git/blob - www/window/CreateDirectory.js
ui: add calendar event selector
[proxmox-backup.git] / www / window / CreateDirectory.js
1 Ext.define('PBS.window.CreateDirectory', {
2 extend: 'Proxmox.window.Edit',
3 xtype: 'pbsCreateDirectory',
4
5 subject: Proxmox.Utils.directoryText,
6 showProgress: true,
7 isCreate: true,
8 url: '/nodes/localhost/disks/directory',
9 method: 'POST',
10
11 items: [
12 {
13 xtype: 'pmxDiskSelector',
14 name: 'disk',
15 valueField: 'name',
16 typeProperty: 'usage-type',
17 nodename: 'localhost',
18 diskType: 'unused',
19 fieldLabel: gettext('Disk'),
20 allowBlank: false,
21 },
22 {
23 xtype: 'proxmoxKVComboBox',
24 comboItems: [
25 ['ext4', 'ext4'],
26 ['xfs', 'xfs'],
27 ],
28 fieldLabel: gettext('Filesystem'),
29 name: 'filesystem',
30 value: '',
31 allowBlank: false,
32 },
33 {
34 xtype: 'proxmoxtextfield',
35 name: 'name',
36 fieldLabel: gettext('Name'),
37 allowBlank: false,
38 },
39 {
40 xtype: 'proxmoxcheckbox',
41 name: 'add-datastore',
42 fieldLabel: gettext('Add as Datastore'),
43 value: '1',
44 },
45 ],
46 });
47