]> git.proxmox.com Git - pmg-gui.git/commitdiff
add regextester to the match field editor
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 13 Sep 2017 13:10:35 +0000 (15:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Sep 2017 04:27:42 +0000 (06:27 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/Utils.js

index 4a6068377fec0c1a39b8fa8fbbac439ea65d620a..cfcc856a8e971afceacbab19c03fd32aef34cb43 100644 (file)
@@ -212,19 +212,29 @@ Ext.define('PMG.Utils', {
            xtype: 'proxmoxWindowEdit',
            subdir: 'matchfield',
            subject: gettext('Match Field'),
+           width: 400,
            items: [
                {
                    xtype: 'textfield',
                    name: 'field',
+                   labelWidth: 150,
                    allowBlank: false,
                    fieldLabel: gettext('Field')
                },
                {
                    xtype: 'textfield',
+                   reference: 'value',
                    name: 'value',
+                   labelWidth: 150,
                    allowBlank: false,
                    fieldLabel: gettext('Value')
                },
+               {
+                   labelWidth: 150,
+                   fieldLabel: gettext('Test String'),
+                   xtype: 'pmgRegexTester',
+                   regexFieldReference: 'value',
+               }
            ]
        },
        3003: {