]> git.proxmox.com Git - pve-manager.git/blame - www/manager6/Toolkit.js
update shipped appliance info index
[pve-manager.git] / www / manager6 / Toolkit.js
CommitLineData
52e4096b
DM
1// ExtJS related things
2
e7ade592 3Proxmox.Utils.toolkit = 'extjs';
52e4096b 4
21026cce 5// custom PVE specific VTypes
52e4096b 6Ext.apply(Ext.form.field.VTypes, {
52e4096b
DM
7
8 QemuStartDate: function(v) {
9 return (/^(now|\d{4}-\d{1,2}-\d{1,2}(T\d{1,2}:\d{1,2}:\d{1,2})?)$/).test(v);
10 },
f6673991 11 QemuStartDateText: gettext('Format') + ': "now" or "2006-06-17T16:01:21" or "2006-06-17"',
5865b597
WB
12 IP64AddressList: v => PVE.Utils.verify_ip64_address_list(v, false),
13 IP64AddressWithSuffixList: v => PVE.Utils.verify_ip64_address_list(v, true),
f6673991 14 IP64AddressListText: gettext('Example') + ': 192.168.1.1,192.168.1.2',
0199b091 15 IP64AddressListMask: /[A-Fa-f0-9,:.; ]/,
9a9be673
NS
16 PciIdText: gettext('Example') + ': 0x8086',
17 PciId: v => /^0x[0-9a-fA-F]{4}$/.test(v),
52e4096b 18});
8c93faf9
TL
19
20Ext.define('PVE.form.field.Display', {
21 override: 'Ext.form.field.Display',
22
23 setSubmitValue: function(value) {
24 // do nothing, this is only to allow generalized bindings for the:
25 // `me.isCreate ? 'textfield' : 'displayfield'` cases we have.
f6710aac 26 },
8c93faf9 27});