add english back in
[Pman.Admin] / Pman.Tab.AdminEmailTemplates.bjs
index 72f0bbb..38c167e 100644 (file)
@@ -11,6 +11,7 @@
   "00d6e06d2f3c092b4f5e1e708a360b0f" : "Displaying Message{0} - {1} of {2}",
   "9076cbba1d9ef79280b4f39e2aa0d115" : "Nothing found",
   "b78a3223503896721cca1303f776159b" : "Title",
+  "68b00d723d37122f64da8d9939f836f0" : "BCC Group",
   "9e11143e29a031212f2cdefcf61f39e9" : "View Message",
   "f49559cda3fb906fbd7736f8b8a0e37d" : "Email Template",
   "01bd6a16732dfa2b760dc8566c58afae" : "Download to Excel",
@@ -22,6 +23,9 @@
  },
  "items" : [
   {
+   "listeners" : {
+    "render" : "function (_self)\n{\n    _this.nest = this;\n}"
+   },
    "region" : "center",
    "title" : "Email Template",
    "xtype" : "NestedLayoutPanel",
@@ -52,9 +56,9 @@
        "listeners" : {
         "|activate" : "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
        },
+       "region" : "center",
        "fitToframe" : true,
        "background" : true,
-       "region" : "center",
        "title" : "core_email",
        "xtype" : "GridPanel",
        "fitContainer" : true,
@@ -85,7 +89,7 @@
            },
            "xtype" : "Store",
            "remoteSort" : true,
-           "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
+           "$ sortInfo" : "{ field : 'description', direction: 'ASC' }",
            "$ xns" : "Roo.data",
            "* prop" : "dataSource",
            "items" : [
            "items" : [
             {
              "listeners" : {
-              "|click" : "function()\n{\n  var sel = _this.grid.selModel.getSelected();\n  if (!sel) {\n        Roo.MessageBox.alert(\"Error\", \"Select a message to copy\");\n        return;\n    }\nnew Pman.Request({\n    url : baseURL + '/Roo/Core_email',\n    method : 'POST',\n    params : {\n        id : sel.data.id,\n        _make_copy : 1\n    },\n    success : function() {\n        _this.grid.footer.onClick('refresh');\n    }\n});\n  \n}\n"
+              "|click" : "function()\n{\n   \nnew Pman.Download({\n    url : baseURL + '/Roo/Core_email',\n    method : 'GET',\n    params : {\n        csvCols : '*',\n        csvTitles : '*'\n    }\n});\nRoo.MessageBox.alert(\"Notice\", \"Should be downloading now\");\n  \n}\n"
              },
              "text" : "Download to Excel",
              "xtype" : "Button",
-             "cls" : "x-btn-text-icon",
-             "$ icon" : "Roo.rootURL + 'images/default/dd/drop-add.gif'",
              "$ xns" : "Roo.Toolbar"
             }
            ]
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 250,
            "header" : "Name",
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
+           "width" : 250,
+           "$ renderer" : "function(v,x,r) \n{ \n    if (r.data.description.length > 0) {\n        v = r.data.description;\n    }\n    \n    \n    if(r.data.active * 1 < 1){\n        return String.format('<s>{0}</s>', v ? v : ''); \n    }\n    \n    return String.format('{0}', v ? v : ''); \n}",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
-           "* prop" : "colModel[]",
+           "* prop" : "cm[]",
            "dataIndex" : "name"
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 300,
            "header" : "Title",
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
+           "width" : 300,
+           "$ renderer" : "function(v,x,r) \n{ \n    if(r.data.active * 1 < 1){\n        return String.format('<s>{0}</s>', v ? v : ''); \n    }\n    \n    return String.format('{0}', v ? v : ''); \n}",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
-           "* prop" : "colModel[]",
+           "* prop" : "cm[]",
            "dataIndex" : "subject"
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 400,
            "header" : "From Name",
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
+           "width" : 150,
+           "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
-           "* prop" : "colModel[]",
+           "* prop" : "cm[]",
            "dataIndex" : "from_name"
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 400,
+           "width" : 150,
            "header" : "From Email",
-           "$ renderer" : "function(v) { return String.format('{0}', v); }",
+           "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
-           "* prop" : "colModel[]",
+           "* prop" : "cm[]",
            "dataIndex" : "from_email"
+          },
+          {
+           "xtype" : "ColumnModel",
+           "header" : "BCC Group",
+           "width" : 150,
+           "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
+           "$ xns" : "Roo.grid",
+           "Boolean sortable" : true,
+           "* prop" : "cm[]",
+           "dataIndex" : "bcc_group_name"
           }
          ]
         }