Fix #7173 - translation code split up process into parts.
[Pman.Admin] / Pman.Tab.AdminEmailTemplates.bjs
index 0b409aa..eaad9ce 100644 (file)
@@ -2,7 +2,7 @@
  "name" : "Pman.Tab.AdminEmailTemplates",
  "parent" : "Pman.Tab.Admin",
  "title" : "Manage Email Templates",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminEmailTemplates.bjs",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminEmailTemplates.bjs",
  "permname" : "",
  "modOrder" : "999",
  "strings" : {
  },
  "items" : [
   {
+   "listeners" : {
+    "render" : "function (_self)\n{\n    _this.nest = this;\n}"
+   },
    "region" : "center",
-   "title" : "Email Template",
    "xtype" : "NestedLayoutPanel",
+   "title" : "Email Template",
    "$ xns" : "Roo",
    "items" : [
     {
@@ -41,7 +44,6 @@
        "* prop" : "center"
       },
       {
-       "autoScroll" : false,
        "xtype" : "LayoutRegion",
        "$ xns" : "Roo",
        "split" : true,
            },
            "xtype" : "Store",
            "remoteSort" : true,
-           "$ sortInfo" : "{ field : 'name', direction: 'ASC' }",
+           "$ sortInfo" : "{ field : 'description', direction: 'ASC' }",
            "$ xns" : "Roo.data",
            "* prop" : "dataSource",
            "items" : [
             {
              "$ url" : "baseURL + '/Roo/Core_email.php'",
-             "method" : "GET",
              "xtype" : "HttpProxy",
+             "method" : "GET",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },
           },
           {
            "xtype" : "ColumnModel",
-           "header" : "Name",
            "width" : 250,
-           "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
+           "header" : "Name",
+           "$ 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" : "cm[]",
           },
           {
            "xtype" : "ColumnModel",
-           "header" : "Title",
            "width" : 300,
-           "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
+           "header" : "Title",
+           "$ 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" : "cm[]",
           },
           {
            "xtype" : "ColumnModel",
+           "width" : 150,
            "header" : "From Name",
-           "width" : 300,
            "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
           },
           {
            "xtype" : "ColumnModel",
-           "width" : 300,
            "header" : "From Email",
+           "width" : 150,
            "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
           },
           {
            "xtype" : "ColumnModel",
+           "width" : 150,
            "header" : "BCC Group",
-           "width" : 300,
            "$ renderer" : "function(v) { return String.format('{0}', v ? v : ''); }",
            "$ xns" : "Roo.grid",
            "Boolean sortable" : true,
        "listeners" : {
         "render" : "function (_self)\n{\n    _this.viewPanel = _self;\n}"
        },
-       "autoScroll" : true,
-       "fitToFrame" : true,
        "background" : false,
        "region" : "south",
+       "Boolean fitContainer" : true,
        "title" : "View Message",
        "xtype" : "ContentPanel",
-       "fitContainer" : true,
+       "Boolean fitToFrame" : true,
        "$ xns" : "Roo",
+       "Boolean autoScroll" : true,
        "items" : [
         {
          "listeners" : {
           {
            "listeners" : {
             "beforeload" : "function (_self, options)\n{\n    options.params = options.params || {};\n    var p = _this.grid.selModel.getSelected();\n    if (!p || !p.data.id) {\n        this.removeAll();\n        return false;\n    }\n   \n    options.params['id'] = p.data.id;\n \n}",
-            "load" : "function (_self, records, options)\n{\n    var p = _this.grid.selModel.getSelected();\n  //  Roo.log(p);\n    if (!p || !p.data.id) {\n        this.removeAll();\n        return false;\n    }\n  /*  \n    new Pman.Request({\n        url : baseURL + '/Roo/crm_action.php',\n        method : 'GET',\n        params : {\n            person_id : p.data.id,\n            sort : 'action_dt',\n            dir : 'DESC'\n        },\n        success : function(res) {\n            if(res.success){\n                var el = _this.cpanel.el.select('.crm-history-content').first();\n                _this.historyTemplate.overwrite(el, res);\n                el.select('.crm-history-log').on('click', Pman.Crm.auditToggle);\n                //Roo.log(res);\n            }\n        },\n        failure : function(e) {\n            //Roo.log(e);\n          _this.grid.ds.load({});\n        }\n        \n    });\n    */\n\n//_this.historyTemplate = new Roo.DomTemplate({url : rootURL+'/Pman/Crm/domtemplates/crm_history.html'})\n\n/*\n  new pman request ([\n  \n  } successs(data)\n       el = _this.elemmnt.select('.services')\n       _this.serviceTemplate.overwite(el, data)\n  */\n}"
+            "load" : "function (_self, records, options)\n{\n    var p = _this.grid.selModel.getSelected();\n  //  Roo.log(p);\n    if (!p || !p.data.id) {\n        this.removeAll();\n        return false;\n    }\n \n}"
            },
            "xtype" : "Store",
            "$ xns" : "Roo.data",
            "items" : [
             {
              "$ url" : "baseURL+'/Roo/Core_email.php'",
-             "method" : "GET",
              "xtype" : "HttpProxy",
+             "method" : "GET",
              "$ xns" : "Roo.data",
              "* prop" : "proxy"
             },