]> git.proxmox.com Git - pmg-gui.git/commitdiff
add TimeFrame editor
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Mar 2017 16:06:48 +0000 (17:06 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 2 Mar 2017 16:06:48 +0000 (17:06 +0100)
js/ObjectGroupConfiguration.js
js/Utils.js

index 7b2635040ce400c03a99fd13d76b5f761a06367e..afe6749e520e6262978e2748c72a20222cb56f4e 100644 (file)
@@ -70,7 +70,7 @@ Ext.define('PMG.WhenConfiguration', {
     alias: 'widget.pmgWhenConfiguration',
 
     ogclass: 'when',
-    otype_list: []
+    otype_list: [2000]
 });
 
 Ext.define('PMG.WhatConfiguration', {
index 4c4a76b720c1cfb80d2b4391d9e4090447140170..e478dc1ba8fc44b461a266937500112ee98c69a0 100644 (file)
@@ -127,6 +127,24 @@ Ext.define('PMG.Utils', {
                    fieldLabel: gettext("IP Network")
                }
            ]
+       },
+       2000: {
+           subdir: 'timeframe',
+           subject: gettext("TimeFrame"),
+           items: [
+               {
+                   xtype: 'timefield',
+                   name: 'start',
+                   format: 'H:i',
+                   fieldLabel: gettext("Start Time")
+               },
+               {
+                   xtype: 'timefield',
+                   name: 'end',
+                   format: 'H:i',
+                   fieldLabel: gettext("End Time")
+               }
+           ]
        }
     },