MailTemplateList.php
[Pman.Core] / Pman.Dialog.MailTemplateList.bjs
1 {
2     "id": "roo-file-317",
3     "name": "Pman.Dialog.MailTemplateList",
4     "parent": "",
5     "title": "",
6     "path": "/home/edward/gitlive/Pman.Core/Pman.Dialog.MailTemplateList.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 500,
12             "modal": true,
13             "resizable": false,
14             "title": "Email Templates",
15             "width": 500,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "*prop": "center",
21                     "split": true,
22                     "titlebar": false,
23                     "width": 400,
24                     "xtype": "LayoutRegion",
25                     "|xns": "Roo"
26                 },
27                 {
28                     "listeners": {
29                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.ds.load({});\n    }\n}"
30                     },
31                     "background": false,
32                     "fitContainer": true,
33                     "fitToframe": true,
34                     "region": "center",
35                     "tableName": "ignore",
36                     "title": "Template name",
37                     "xtype": "GridPanel",
38                     "|xns": "Roo",
39                     "items": [
40                         {
41                             "listeners": {
42                                 "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.ds.load({});\n    }\n}"
43                             },
44                             "*prop": "grid",
45                             "autoExpandColumn": "name",
46                             "loadMask": true,
47                             "xtype": "Grid",
48                             "|xns": "Roo.grid",
49                             "items": [
50                                 {
51                                     "listeners": {
52                                         "beforeload": "function (_self, o)\n{\n    o.params = o.params || {};\n    o.params._list = 1;\n}"
53                                     },
54                                     "*prop": "dataSource",
55                                     "remoteSort": true,
56                                     "xtype": "Store",
57                                     "|sortInfo": "{ field : 'publication', direction: 'ASC' }",
58                                     "|xns": "Roo.data",
59                                     "items": [
60                                         {
61                                             "*prop": "proxy",
62                                             "method": "GET",
63                                             "xtype": "HttpProxy",
64                                             "|url": "baseURL + '/Pman/Core/MailTemplateList.php'",
65                                             "|xns": "Roo.data"
66                                         },
67                                         {
68                                             "|xns": "Roo.data",
69                                             "xtype": "JsonReader",
70                                             "totalProperty": "total",
71                                             "root": "data",
72                                             "*prop": "reader",
73                                             "id": "id",
74                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'name',\n        'type': 'string'\n    },\n    {\n        'name': 'type',\n        'type': 'int'\n    },\n    {\n        'name': 'leader',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_name',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_email',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_role',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_active',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'leader_firstname',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_lastname',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_name_facebook',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_blog',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_twitter',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_url_linkedin',\n        'type': 'string'\n    },\n    {\n        'name': 'leader_crm_lead_percentage',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_industry_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_updated_action_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_created_action_id',\n        'type': 'int'\n    },\n    {\n        'name': 'leader_crm_type_id',\n        'type': 'int'\n    }\n]"
75                                         }
76                                     ]
77                                 },
78                                 {
79                                     "*prop": "colModel[]",
80                                     "dataIndex": "name",
81                                     "header": "Template name",
82                                     "width": 200,
83                                     "xtype": "ColumnModel",
84                                     "|renderer": "function(v) { return String.format('{0}', v); }",
85                                     "|xns": "Roo.grid"
86                                 }
87                             ]
88                         }
89                     ]
90                 },
91                 {
92                     "listeners": {
93                         "|click": "function() {\n    _this.dialog.hide();\n}"
94                     },
95                     "*prop": "buttons[]",
96                     "text": "Cancel",
97                     "xtype": "Button",
98                     "|xns": "Roo"
99                 },
100                 {
101                     "listeners": {
102                         "|click": "function() {\n    _this.dialog.hide();\n}"
103                     },
104                     "*prop": "buttons[]",
105                     "text": "OK",
106                     "xtype": "Button",
107                     "|xns": "Roo"
108                 }
109             ]
110         }
111     ],
112     "permname": "",
113     "modOrder": "001"
114 }