Pman.Tab.CmsBlog.bjs
[Pman.Cms] / Pman.Dialog.CmsCategory.bjs
index 5823c80..6814bb7 100644 (file)
@@ -1,9 +1,9 @@
 {
-    "id": "roo-file-80",
+    "id": "roo-file-271",
     "name": "Pman.Dialog.CmsCategory",
     "parent": "",
     "title": "Cms - Category Edit",
-    "path": "/home/alan/gitlive/Pman.Cms/Pman.Dialog.CmsCategory.bjs",
+    "path": "/home/edward/gitlive/Pman.Cms/Pman.Dialog.CmsCategory.bjs",
     "items": [
         {
             "xtype": "LayoutDialog",
@@ -46,7 +46,7 @@
                         {
                             "listeners": {
                                 "|actionfailed": "function (_self, action)\n{\n    _this.dialog.el.unmask();\n    Pman.standardActionFailed(_self, action);\n}\n",
-                                "|actioncomplete": "function (_self, action)\n{\n   \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n    if (action.type = 'setdata') {\n       _this.grid.getDataSource().load();\n    \n    }\n}\n",
+                                "|actioncomplete": "function (_self, action)\n{\n   \n   if (action.type =='submit') {\n       \n       _this.dialog.el.unmask();\n       _this.dialog.hide();\n       \n        if (_this.callback) {\n           _this.callback.call(_this, _this.form.getValues());\n        }\n        _this.form.reset();\n        return;\n    }\n     if (action.type == 'setdata') {\n         if (_this.data.id) {\n           _this.dialog.el.mask(\"Loading\");\n           this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n            return;\n       }\n      _this.grid.getDataSource().load();\n       return;\n    }\n    if (action.type == 'load') {\n       _this.grid.getDataSource().load();\n        _this.dialog.el.unmask();\n        return;\n    }\n    \n  \n    \n}\n",
                                 "|rendered": "function (_self)\n{\n    _this.form = _self;\n}\n"
                             },
                             "method": "POST",
                                     "xtype": "TextField",
                                     "|xns": "Roo.form"
                                 },
+                                {
+                                    "decimalPrecision": 0,
+                                    "fieldLabel": "Order (1 first)",
+                                    "name": "display_order",
+                                    "width": 50,
+                                    "xtype": "NumberField",
+                                    "|xns": "Roo.form"
+                                },
                                 {
                                     "name": "title",
                                     "fieldLabel": "Title",
@@ -72,7 +80,7 @@
                                     "|xns": "Roo.form"
                                 },
                                 {
-                                    "allowBlank": "false",
+                                    "allowBlank": true,
                                     "displayField": "name",
                                     "editable": "false",
                                     "emptyText": "Select Type",
                                         }
                                     ]
                                 },
-                                {
-                                    "fieldLabel": "Colour",
-                                    "name": "short_name",
-                                    "width": 100,
-                                    "xtype": "TextField",
-                                    "|xns": "Roo.form"
-                                },
                                 {
                                     "fieldLabel": "Visible",
                                     "name": "visible",
                                     ]
                                 },
                                 {
-                                    "xtype": "ColumnModel",
+                                    "*prop": "colModel[]",
+                                    "dataIndex": "id",
                                     "header": "",
                                     "width": 110,
-                                    "dataIndex": "id",
+                                    "xtype": "ColumnModel",
                                     "|renderer": "function(v,x,r) { return String.format('<img src=\"{0}/Images/Thumb/100/{1}/{2}\">', baseURL, v, r.data.filename); }",
-                                    "listeners": {},
-                                    "|xns": "Roo.grid",
-                                    "*prop": "colModel[]"
+                                    "|xns": "Roo.grid"
                                 },
                                 {
                                     "xtype": "ColumnModel",
             ]
         }
     ],
-    "permname": ""
+    "permname": "",
+    "modOrder": "001"
 }
\ No newline at end of file