1 // ExtJS related things
3 Proxmox
.Utils
.toolkit
= 'extjs';
5 // custom PVE specific VTypes
6 Ext
.apply(Ext
.form
.field
.VTypes
, {
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
);
11 QemuStartDateText
: gettext('Format') + ': "now" or "2006-06-17T16:01:21" or "2006-06-17"',
12 IP64AddressList
: v
=> PVE
.Utils
.verify_ip64_address_list(v
, false),
13 IP64AddressWithSuffixList
: v
=> PVE
.Utils
.verify_ip64_address_list(v
, true),
14 IP64AddressListText
: gettext('Example') + ': 192.168.1.1,192.168.1.2',
15 IP64AddressListMask
: /[A-Fa-f0-9,:.; ]/,
18 Ext
.define('PVE.form.field.Display', {
19 override
: 'Ext.form.field.Display',
21 setSubmitValue: function(value
) {
22 // do nothing, this is only to allow generalized bindings for the:
23 // `me.isCreate ? 'textfield' : 'displayfield'` cases we have.