fix #8131 - chinese translations
[Pman.Core] / Pman.Dialog.CoreEnum.bjs
1 {
2  "name" : "Pman.Dialog.CoreEnum",
3  "parent" : "",
4  "title" : "",
5  "path" : "/home/alan/gitlive/Pman.Core/Pman.Dialog.CoreEnum.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "518ad9ed87d3ca17e223a91604b464d5" : "Add / Edit Core Enum",
10   "cfcd208495d565ef66e7dff9f98764da" : "0",
11   "b48968e1c912da07df5e8d6d246291ec" : "Display Name",
12   "c4ca4238a0b923820dcc509a6f75849b" : "1",
13   "ea4788705e6873b424c65e91c2846b19" : "Cancel",
14   "49ee3087348e8d44e1feda1917443987" : "Name",
15   "4d3d769b812b6faa6b76e1a8abaece2d" : "Active",
16   "e0aa021e21dddbd6d8cecec71e9cf564" : "OK"
17  },
18  "named_strings" : {
19   "display_name_fieldLabel" : "b48968e1c912da07df5e8d6d246291ec",
20   "seqid_value" : "cfcd208495d565ef66e7dff9f98764da",
21   "name_fieldLabel" : "49ee3087348e8d44e1feda1917443987",
22   "active_fieldLabel" : "4d3d769b812b6faa6b76e1a8abaece2d",
23   "active_value" : "c4ca4238a0b923820dcc509a6f75849b"
24  },
25  "items" : [
26   {
27    "listeners" : {
28     "show" : "function (_self)\n{\n    \n}"
29    },
30    "modal" : true,
31    "collapsible" : false,
32    "background" : true,
33    "title" : "Add / Edit Core Enum",
34    "xtype" : "LayoutDialog",
35    "width" : 400,
36    "$ xns" : "Roo",
37    "closable" : false,
38    "resizable" : false,
39    "height" : 150,
40    "items" : [
41     {
42      "xtype" : "LayoutRegion",
43      "$ xns" : "Roo",
44      "titlebar" : false,
45      "* prop" : "center"
46     },
47     {
48      "fitToFrame" : true,
49      "background" : true,
50      "region" : "center",
51      "xtype" : "ContentPanel",
52      "$ xns" : "Roo",
53      "items" : [
54       {
55        "listeners" : {
56         "|actioncomplete" : "function (_self, action)\n{\n  if (action.type == 'setdata') {\n\n        if((typeof(_this.data.etype) == 'undefined') || !_this.data.etype.length){\n            Roo.MessageBox.alert('Error', 'Missing etype');\n            _this.dialog.hide();\n            return;\n        }\n        \n        if(typeof(_this.data.title) != 'undefined' && _this.data.title.length){\n            _this.dialog.setTitle(_this.data.title);\n        }\n  \n        if(_this.data.id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.id }}); \n        }\n       \n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type == 'submit' ) {\n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n\n        if (_this.callback) {\n           _this.callback.call(_this, action.result.data);\n        }\n        _this.form.reset();\n    }\n}\n",
57         "|rendered" : "function (form)\n{\n   _this.form = form;\n}"
58        },
59        "$ url" : "baseURL + '/Roo/core_enum.php'",
60        "method" : "POST",
61        "xtype" : "Form",
62        "style" : "margin: 5px",
63        "$ xns" : "Roo.form",
64        "items" : [
65         {
66          "fieldLabel" : "Name",
67          "bool hidden" : true,
68          "xtype" : "TextField",
69          "allowBlank" : false,
70          "actionMode" : "fieldEl",
71          "width" : 200,
72          "$ xns" : "Roo.form",
73          "name" : "name"
74         },
75         {
76          "listeners" : {
77           "keyup" : "function (_self, e)\n{\n    _this.form.findField('name').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n    \n}"
78          },
79          "fieldLabel" : "Display Name",
80          "xtype" : "TextField",
81          "allowBlank" : false,
82          "width" : 250,
83          "$ xns" : "Roo.form",
84          "name" : "display_name"
85         },
86         {
87          "String actionMode" : "fieldEl",
88          "Boolean checked" : true,
89          "fieldLabel" : "Active",
90          "inputValue" : 1,
91          "hidden" : true,
92          "value" : 1,
93          "xtype" : "Checkbox",
94          "valueOff" : 0,
95          "$ xns" : "Roo.form",
96          "name" : "active"
97         },
98         {
99          "xtype" : "Hidden",
100          "$ xns" : "Roo.form",
101          "name" : "etype"
102         },
103         {
104          "xtype" : "Hidden",
105          "value" : 0,
106          "$ xns" : "Roo.form",
107          "name" : "seqid"
108         },
109         {
110          "xtype" : "Hidden",
111          "$ xns" : "Roo.form",
112          "name" : "id"
113         }
114        ]
115       }
116      ]
117     },
118     {
119      "listeners" : {
120       "|click" : "function() {\n    _this.form.reset();\n    _this.dialog.hide();\n}"
121      },
122      "text" : "Cancel",
123      "xtype" : "Button",
124      "$ xns" : "Roo",
125      "* prop" : "buttons[]"
126     },
127     {
128      "listeners" : {
129       "|click" : "function() {\n\n    var name =     _this.form.findField('name').getValue();\n    name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n    if (!name.length) {\n        Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n        return;\n    }\n    _this.form.findField('name').setValue(name);\n \n    _this.form.doAction('submit');\n    \n}"
130      },
131      "text" : "OK",
132      "xtype" : "Button",
133      "$ xns" : "Roo",
134      "* prop" : "buttons[]"
135     }
136    ]
137   }
138  ]
139 }