sync
[Pman.Admin] / Pman.Dialog.AdminTranslateTemplates.bjs
1 {
2  "name" : "Pman.Dialog.AdminTranslateTemplates",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminTranslateTemplates.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "0a52da7a03a6de3beefe54f8c03ad80d" : "Original",
10   "d41d8cd98f00b204e9800998ecf8427e" : "",
11   "6dd08874f83507e9c7b23f1a46b7fa7c" : "Translation",
12   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
13   "305253475cc868103805068f45a90468" : "Edit Translation",
14   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
15  },
16  "named_strings" : {
17   "src_id_txt_fieldLabel" : "0a52da7a03a6de3beefe54f8c03ad80d",
18   "src_id_txt_value" : "d41d8cd98f00b204e9800998ecf8427e",
19   "txt_fieldLabel" : "6dd08874f83507e9c7b23f1a46b7fa7c"
20  },
21  "items" : [
22   {
23    "modal" : true,
24    "collapsible" : false,
25    "background" : true,
26    "title" : "Edit Translation",
27    "xtype" : "LayoutDialog",
28    "width" : 800,
29    "$ xns" : "Roo",
30    "closable" : false,
31    "resizable" : true,
32    "height" : 450,
33    "items" : [
34     {
35      "xtype" : "LayoutRegion",
36      "$ xns" : "Roo",
37      "* prop" : "center",
38      "titlebar" : true,
39      "$ title" : "\"Note: If the original text contains template variables like  {TEMPLATE_VARIABLE} <br/>Be careful to retain them otherwise the translation may not work\""
40     },
41     {
42      "region" : "center",
43      "fitToFrame" : true,
44      "background" : true,
45      "xtype" : "ContentPanel",
46      "$ xns" : "Roo",
47      "items" : [
48       {
49        "listeners" : {
50         "|actionfailed" : "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
51         "|actioncomplete" : "function (_self, action)\n{\n      \n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       \n       Roo.log(_this.data);\n       return;\n    }\n    if (action.type == 'load') {\n         return;\n    }\n    if (action.type =='submit') {\n        _this.dialog.hide();\n        if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n}\n",
52         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
53        },
54        "style" : "margin: 5px",
55        "xtype" : "Form",
56        "method" : "POST",
57        "$ xns" : "Roo.form",
58        "items" : [
59         {
60          "labelAlign" : "top",
61          "xtype" : "Row",
62          "$ xns" : "Roo.form",
63          "items" : [
64           {
65            "fieldLabel" : "Original",
66            "xtype" : "TextArea",
67            "value" : "",
68            "readOnly" : true,
69            "width" : 750,
70            "$ xns" : "Roo.form",
71            "height" : 150,
72            "name" : "src_id_txt"
73           }
74          ]
75         },
76         {
77          "labelAlign" : "top",
78          "xtype" : "Row",
79          "$ xns" : "Roo.form",
80          "items" : [
81           {
82            "fieldLabel" : "Translation",
83            "xtype" : "TextArea",
84            "width" : 750,
85            "$ xns" : "Roo.form",
86            "name" : "txt",
87            "height" : 150
88           }
89          ]
90         }
91        ]
92       }
93      ]
94     },
95     {
96      "listeners" : {
97       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
98      },
99      "text" : "Cancel",
100      "xtype" : "Button",
101      "$ xns" : "Roo",
102      "* prop" : "buttons[]"
103     },
104     {
105      "listeners" : {
106       "|click" : "function() {\n    _this.dialog.el.mask(\"Saving\");\n    //_this.form.doAction('submit');\n    _this.dialog.hide();\n    if (_this.callback) {\n        _this.callback.call(_this, _this.form.getValues());\n    }\n    _this.dialog.el.unmask();\n    _this.form.reset();\n}"
107      },
108      "text" : "OK",
109      "xtype" : "Button",
110      "$ xns" : "Roo",
111      "* prop" : "buttons[]"
112     }
113    ]
114   }
115  ]
116 }