Pman.Dialog.CoreNotifyRecur.bjs
[Pman.Core] / Pman.Dialog.CoreNotifyRecur.bjs
index a50b325..db826f4 100644 (file)
                                             "*prop": "editor",
                                             "items": [
                                                 {
-                                                    "*prop": "field",
-                                                    "allowBlank": false,
-                                                    "displayField": "title",
-                                                    "editable": false,
-                                                    "fieldLabel": "Country",
-                                                    "hiddenName": "freq",
-                                                    "listWidth": 200,
-                                                    "mode": "local",
-                                                    "name": "freq_name",
-                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{title}</b> </div>",
+                                                    "allowBlank": "false",
+                                                    "displayField": "tz",
+                                                    "editable": true,
+                                                    "emptyText": "Select timezone",
+                                                    "fieldLabel": "core_enum",
+                                                    "forceSelection": true,
+                                                    "hiddenName": "tz",
+                                                    "listWidth": 400,
+                                                    "loadingText": "Searching...",
+                                                    "minChars": 2,
+                                                    "name": "tz_name",
+                                                    "pageSize": 999,
+                                                    "qtip": "Select timezone",
+                                                    "selectOnFocus": true,
+                                                    "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{tz}</b> </div>",
                                                     "triggerAction": "all",
-                                                    "valueField": "code",
-                                                    "width": 200,
+                                                    "typeAhead": true,
+                                                    "valueField": "tz",
+                                                    "width": 300,
                                                     "xtype": "ComboBox",
                                                     "|xns": "Roo.form",
                                                     "items": [
                                                         {
+                                                            "listeners": {
+                                                                "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
+                                                            },
                                                             "*prop": "store",
-                                                            "xtype": "SimpleStore",
-                                                            "|data": "[ \n    [ 'HOURLY' , 'Hourly at' ] ,\n       [ 'DAILY' , 'Daily at'] ,\n        [ 'WEEKLY' , 'Weekly at'] ,\n         [ 'Montly' , 'Montly at'] \n]",
-                                                            "|fields": "['code', 'title']",
-                                                            "|sortInfo": "{ field : 'title', direction: 'ASC' }",
-                                                            "|xns": "Roo.data"
+                                                            "remoteSort": true,
+                                                            "xtype": "Store",
+                                                            "|sortInfo": "{ direction : 'ASC', field: 'tz' }",
+                                                            "|xns": "Roo.data",
+                                                            "items": [
+                                                                {
+                                                                    "*prop": "proxy",
+                                                                    "method": "GET",
+                                                                    "xtype": "HttpProxy",
+                                                                    "|url": "baseURL + '/Core/I18n/Timezone.php'\n",
+                                                                    "|xns": "Roo.data"
+                                                                },
+                                                                {
+                                                                    "*prop": "reader",
+                                                                    "xtype": "JsonReader",
+                                                                    "|xns": "Roo.data",
+                                                                    "id": "id",
+                                                                    "root": "data",
+                                                                    "totalProperty": "total",
+                                                                    "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
+                                                                }
+                                                            ]
                                                         }
                                                     ]
                                                 }