]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
use combobox for iscsiprovider
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 26 Aug 2014 08:10:45 +0000 (10:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 26 Aug 2014 08:10:45 +0000 (10:10 +0200)
www/manager/Makefile
www/manager/form/iScsiProviderSelector.js [new file with mode: 0644]
www/manager/storage/ZFSEdit.js

index e0b111ea9d319f425175d01b0e5155eb53b0f4f0..e9e612cb4f83285605c37a6d3426b702ba10e26a 100644 (file)
@@ -54,6 +54,7 @@ JSSRC=                                                        \
        form/CacheTypeSelector.js                       \
        form/SnapshotSelector.js                        \
        form/ContentTypeSelector.js                     \
+       form/iScsiProviderSelector.js                   \
        form/DayOfWeekSelector.js                       \
        form/BackupModeSelector.js                      \
        form/ScsiHwSelector.js                          \
diff --git a/www/manager/form/iScsiProviderSelector.js b/www/manager/form/iScsiProviderSelector.js
new file mode 100644 (file)
index 0000000..9ea34a1
--- /dev/null
@@ -0,0 +1,16 @@
+Ext.define('PVE.form.iScsiProviderSelector', {
+    extend: 'PVE.form.KVComboBox',
+    alias: ['widget.pveiScsiProviderSelector'],
+  
+    initComponent: function() {
+       var me = this;
+
+       me.data = [
+           ['comstar', 'Comstar'],
+           [ 'istgt', 'istgt'],
+           [ 'iet', 'IET']
+       ];
+
+       me.callParent();
+    }
+});
index 9fe56ef5d046baf3e66099a84171c92196408495..f40bf7ab6bee00342ebcf863e70b74943c99b2cc 100644 (file)
@@ -81,10 +81,10 @@ Ext.define('PVE.storage.ZFSInputPanel', {
                fieldLabel: gettext('Enable')
            },
            {
-               xtype: me.create ? 'textfield' : 'displayfield',
+               xtype: me.create ? 'pveiScsiProviderSelector' : 'displayfield',
                name: 'iscsiprovider',
                height: 22, // hack: set same height as text fields
-               value: 'Comstar',
+               value: 'comstar',
                fieldLabel: gettext('iSCSI Provider'),
                allowBlank: false
            },