]> git.proxmox.com Git - pmg-gui.git/commitdiff
implement matchfilename editor
authorDominik Csapak <d.csapak@proxmox.com>
Wed, 13 Sep 2017 13:10:38 +0000 (15:10 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 14 Sep 2017 04:29:06 +0000 (06:29 +0200)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/Utils.js

index 02a7802bb716940fe869202b09cf53a028d7b84d..beb14db41f50ffeca6a19e8a50423629086785d6 100644 (file)
@@ -291,6 +291,29 @@ Ext.define('PMG.Utils', {
                },
            ]
        },
+       3004: {
+           xtype: 'proxmoxWindowEdit',
+           subdir: 'filenamefilter',
+           width: 400,
+           subject: gettext('Match Filename'),
+           items: [
+               {
+                   xtype: 'textfield',
+                   name: 'filename',
+                   reference: 'filename',
+                   fieldLabel: gettext('Filename'),
+                   labelWidth: 150,
+                   allowBlank: false
+               },
+               {
+                   labelWidth: 150,
+                   fieldLabel: gettext('Test String'),
+                   wholeMatch: true,
+                   xtype: 'pmgRegexTester',
+                   regexFieldReference: 'filename'
+               }
+           ]
+       },
        4005: {
            xtype: 'proxmoxWindowEdit',
            subdir: 'bcc',