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

index beb14db41f50ffeca6a19e8a50423629086785d6..af20b5377a9af4e19394e9b28a4aaa07af0ef350 100644 (file)
@@ -314,6 +314,46 @@ Ext.define('PMG.Utils', {
                }
            ]
        },
+       3005: {
+           xtype: 'proxmoxWindowEdit',
+           subdir: 'archivefilter',
+           width: 400,
+           subject: gettext('Archive Filter'),
+           items: [
+               {
+                   xtype: 'combobox',
+                   displayField: 'text',
+                   labelWidth: 150,
+                   valueField: 'mimetype',
+                   name: 'contenttype',
+                   editable: true,
+                   queryMode: 'local',
+                   store: {
+                       autoLoad: true,
+                       proxy: {
+                           type: 'proxmox',
+                           url: '/api2/json/config/mimetypes'
+                       },
+                   },
+                   fieldLabel: gettext('Content Type'),
+                   anyMatch: true,
+                   matchFieldWidth: false,
+                   listeners: {
+                       change: function(cb, value) {
+                           var me = this;
+                           me.up().down('displayfield').setValue(value);
+                       }
+                   }
+               },
+               {
+                   xtype: 'displayfield',
+                   fieldLabel: gettext('Value'),
+                   labelWidth: 150,
+                   allowBlank: false,
+                   reset: Ext.emptyFn
+               }
+           ]
+       },
        4005: {
            xtype: 'proxmoxWindowEdit',
            subdir: 'bcc',