Pman.Dialog.CoreEmail.bjs
authorleon <leon@roojs.com>
Mon, 14 Mar 2022 02:16:42 +0000 (10:16 +0800)
committerleon <leon@roojs.com>
Mon, 14 Mar 2022 02:16:42 +0000 (10:16 +0800)
Pman.Dialog.CoreEmail.js

Pman.Dialog.CoreEmail.bjs
Pman.Dialog.CoreEmail.js

index 00be688..823d884 100644 (file)
                "$ xns" : "Roo.form",
                "name" : "name"
               },
+              {
+               "xtype" : "Column",
+               "$ xns" : "Roo.form",
+               "Boolean hideLabels" : true,
+               "items" : [
+                {
+                 "listeners" : {
+                  "check" : "function (_self, checked)\n{\n    var boxLabel = 'Enabled - will be sent out';\n    \n    if(!checked){\n        boxLabel = 'Disabled - will NOT be sent out';\n    }\n    \n    this.setBoxLabel(boxLabel);\n}"
+                 },
+                 "String name" : "active",
+                 "Boolean checked" : true,
+                 "xtype" : "Checkbox",
+                 "String valueOff" : 0,
+                 "String boxLabel" : "Enabled - will be sent out",
+                 "$ xns" : "Roo.form",
+                 "Mixed value" : 1
+                }
+               ]
+              },
               {
                "xtype" : "Column",
                "$ xns" : "Roo.form",
index 1ef1e30..19d3e3b 100644 (file)
@@ -674,6 +674,36 @@ Pman.Dialog.CoreEmail = {
                  '|xns' : 'Roo.form'
                 }
                ]
+              },
+              {
+               xtype : 'Column',
+               hideLabels : true,
+               xns : Roo.form,
+               '|xns' : 'Roo.form',
+               items  : [
+                {
+                 xtype : 'Checkbox',
+                 boxLabel : _this._strings['28690be026c0bb9003aa58e45e5662ca'] /* Enabled - will be sent out */,
+                 checked : true,
+                 name : 'active',
+                 value : 1,
+                 valueOff : 0,
+                 listeners : {
+                  check : function (_self, checked)
+                   {
+                       var boxLabel = 'Enabled - will be sent out';
+                       
+                       if(!checked){
+                           boxLabel = 'Disabled - will NOT be sent out';
+                       }
+                       
+                       this.setBoxLabel(boxLabel);
+                   }
+                 },
+                 xns : Roo.form,
+                 '|xns' : 'Roo.form'
+                }
+               ]
               }
              ]
             },