data/ResourceStore.js \
data/model/RRDModels.js \
form/VLanField.js \
- form/Checkbox.js \
form/RRDTypeSelector.js \
form/KVComboBox.js \
form/Boolean.js \
emptyText: 'use OSD disk'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'bluestore',
fieldLabel: 'Bluestore',
uncheckedValue: '0',
method: 'DELETE',
items: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'cleanup',
checked: true,
labelWidth: 130,
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Add Storages'),
name: 'add_storages'
}
if (!me.path) {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'propagate',
checked: true,
uncheckedValue: 0,
}
column1.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Default'),
name: 'default',
uncheckedValue: 0
submitEmptyText: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: 'SSL',
name: 'secure',
uncheckedValue: 0
name: 'mode'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enable'),
name: 'enabled',
uncheckedValue: 0,
fieldLabel: gettext('Expire')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enabled'),
name: 'enable',
uncheckedValue: 0,
+++ /dev/null
-Ext.define('PVE.form.Checkbox', {
- extend: 'Ext.form.field.Checkbox',
- alias: ['widget.pvecheckbox'],
-
- defaultValue: undefined,
-
- deleteDefaultValue: false,
- deleteEmpty: false,
-
- inputValue: '1',
-
- getSubmitData: function() {
- var me = this,
- data = null,
- val;
- if (!me.disabled && me.submitValue) {
- val = me.getSubmitValue();
- if (val !== null) {
- data = {};
- if ((val == me.defaultValue) && me.deleteDefaultValue) {
- data['delete'] = me.getName();
- } else {
- data[me.getName()] = val;
- }
- } else if (me.deleteEmpty) {
- data = {};
- data['delete'] = me.getName();
- }
- }
- return data;
- },
-
- // also accept integer 1 as true
- setRawValue: function(value) {
- var me = this;
-
- if (value === 1) {
- me.callParent([true]);
- } else {
- me.callParent([value]);
- }
- }
-
-});
\ No newline at end of file
subject: text,
fieldDefaults: { labelWidth: labelWidth || 100 },
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
defaultValue: defaultValue || 0,
checked: defaultValue ? true : false,
name: name,
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: false,
uncheckedValue: 0,
column1: column1,
column2: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: false,
uncheckedValue: 0,
name: 'comment'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enabled',
defaultValue: 'on',
checked: true,
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'restricted',
uncheckedValue: 0,
fieldLabel: 'restricted'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'nofailback',
uncheckedValue: 0,
fieldLabel: 'nofailback'
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'unprivileged',
value: '',
listeners: {
allowBlank: true
});
- me.quota = Ext.createWidget('pvecheckbox', {
+ me.quota = Ext.createWidget('proxmoxcheckbox', {
name: 'quota',
defaultValue: 0,
disabled: me.unprivileged,
if (!isroot) {
me.column2.splice(1, 0, {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'ro',
defaultValue: 0,
fieldLabel: gettext('Read-only'),
hidden: me.insideWizard
});
- me.backup = Ext.createWidget('pvecheckbox',{
- xtype: 'pvecheckbox',
+ me.backup = Ext.createWidget('proxmoxcheckbox',{
+ xtype: 'proxmoxcheckbox',
name: 'backup',
fieldLabel: gettext('Backup')
});
me.column2.push(me.backup);
}
me.column2.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'noreplicate',
fieldLabel: gettext('Skip replication')
});
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Firewall'),
name: 'firewall',
checked: cdata.firewall
xtype: 'pveWindowEdit',
subject: gettext('Start at boot'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'onboot',
uncheckedValue: 0,
defaultValue: 0,
xtype: 'pveWindowEdit',
subject: '/dev/console',
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'console',
uncheckedValue: 0,
defaultValue: 1,
xtype: 'pveWindowEdit',
subject: gettext('Protection'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
column1: column1,
column2: [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'nomatch',
checked: false,
uncheckedValue: 0,
fieldLabel: gettext('Cache')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('No backup'),
name: 'nobackup'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
hidden: me.insideWizard,
fieldLabel: gettext('Skip replication'),
name: 'noreplicate'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Discard'),
disabled: me.confid && !me.confid.match(/^scsi/),
reference: 'discard',
name: 'discard'
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
disabled: me.confid && !me.confid.match(/^(virtio|scsi)/),
fieldLabel: 'IO thread',
reference: 'iothread',
});
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Delete source'),
name: 'deleteDisk',
uncheckedValue: 0,
labelWidth: labelWidth
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
hotplug: me.hotplug,
name: 'ballooning',
value: '1',
},
me.bridgesel,
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Firewall'),
name: 'firewall',
labelAlign: 'right'
allowBlank: true
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Disconnect'),
name: 'disconnect'
}
xtype: 'pveWindowEdit',
subject: gettext('Start at boot'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'onboot',
uncheckedValue: 0,
defaultValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('Use tablet for pointer'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'tablet',
checked: true,
uncheckedValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('ACPI support'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'acpi',
checked: true,
uncheckedValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('KVM hardware virtualization'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'kvm',
checked: true,
uncheckedValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('Freeze CPU at startup'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'freeze',
uncheckedValue: 0,
defaultValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('Use local time for RTC'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'localtime',
uncheckedValue: 0,
defaultValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('Qemu Agent'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'agent',
uncheckedValue: 0,
defaultValue: 0,
xtype: 'pveWindowEdit',
subject: gettext('Protection'),
items: {
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'protection',
uncheckedValue: 0,
defaultValue: 0,
}
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: gettext('Enable NUMA'),
name: 'numa',
uncheckedValue: 0
me.column2.push({
hidden: me.insideWizard,
disabled: me.insideWizard,
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
fieldLabel: me.flagLabels[i] || flag,
name: flag,
uncheckedValue: 0
});
} else {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'vmstate',
uncheckedValue: 0,
defaultValue: 0,
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'shared',
uncheckedValue: 0,
fieldLabel: gettext('Shared')
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'shared',
uncheckedValue: 0,
fieldLabel: gettext('Shared')
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
autoSelect: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
/*jslint confusion: true*/
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'krbd',
uncheckedValue: 0,
fieldLabel: 'KRBD'
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
allowBlank: false
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'sparse',
checked: false,
uncheckedValue: 0,
fieldLabel: gettext('Thin provision')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'writecache',
checked: true,
uncheckedValue: 0,
/*jslint confusion: false*/
me.column2 = [
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'enable',
checked: true,
uncheckedValue: 0,
fieldLabel: gettext('Enable')
},
{
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'sparse',
checked: false,
uncheckedValue: 0,
if (me.vmtype === 'lxc') {
items.push({
- xtype: 'pvecheckbox',
+ xtype: 'proxmoxcheckbox',
name: 'unprivileged',
value: '',
fieldLabel: gettext('Unprivileged container')