]> git.proxmox.com Git - pve-manager.git/blobdiff - www/manager6/ha/GroupEdit.js
use Checkbox from widget toolkit
[pve-manager.git] / www / manager6 / ha / GroupEdit.js
index 0d4aa45341759e338e25e712a8d7e6e43b7816ce..623b1dc75c5db6292d4e6dee58ab97ceaee8126b 100644 (file)
@@ -7,7 +7,7 @@ Ext.define('PVE.ha.GroupInputPanel', {
     onGetValues: function(values) {
        var me = this;
 
-       if (me.create) {
+       if (me.isCreate) {
            values.type = 'group';
        }
 
@@ -78,9 +78,10 @@ Ext.define('PVE.ha.GroupInputPanel', {
                    sortable: true,
                    stopSelection: true,
                    widget: {
-                       xtype: 'pveIntegerField',
+                       xtype: 'proxmoxintegerfield',
                        minValue: 0,
                        maxValue: 1000,
+                       isFormField: false,
                        listeners: {
                            change: function(numberfield, value, old_value) {
                                var record = numberfield.getWidgetRecord();
@@ -151,7 +152,7 @@ Ext.define('PVE.ha.GroupInputPanel', {
 
        me.column1 = [
            {
-               xtype: me.create ? 'textfield' : 'displayfield',
+               xtype: me.isCreate ? 'textfield' : 'displayfield',
                name: 'group',
                value: me.groupId || '',
                fieldLabel: 'ID',
@@ -163,13 +164,13 @@ Ext.define('PVE.ha.GroupInputPanel', {
 
        me.column2 = [
            {
-               xtype: 'pvecheckbox',
+               xtype: 'proxmoxcheckbox',
                name: 'restricted',
                uncheckedValue: 0,
                fieldLabel: 'restricted'
            },
            {
-               xtype: 'pvecheckbox',
+               xtype: 'proxmoxcheckbox',
                name: 'nofailback',
                uncheckedValue: 0,
                fieldLabel: 'nofailback'
@@ -197,9 +198,9 @@ Ext.define('PVE.ha.GroupEdit', {
     initComponent : function() {
        var me = this;
  
-       me.create = !me.groupId;
+       me.isCreate = !me.groupId;
 
-       if (me.create) {
+       if (me.isCreate) {
             me.url = '/api2/extjs/cluster/ha/groups';
             me.method = 'POST';
         } else {
@@ -208,7 +209,7 @@ Ext.define('PVE.ha.GroupEdit', {
         }
 
        var ipanel = Ext.create('PVE.ha.GroupInputPanel', {
-           create: me.create,
+           isCreate: me.isCreate,
            groupId: me.groupId
        });
 
@@ -219,7 +220,7 @@ Ext.define('PVE.ha.GroupEdit', {
        
        me.callParent();
 
-       if (!me.create) {
+       if (!me.isCreate) {
            me.load({
                success:  function(response, options) {
                    var values = response.result.data;