Pman.Dialog.BAdminImageManager.bjs
[Pman.BAdmin] / Pman.Dialog.BAdminImageManager.bjs
1 {
2  "name" : "Pman.Dialog.BAdminImageManager",
3  "parent" : "",
4  "title" : "Pman.Dialog.BAdminImageManager",
5  "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Dialog.BAdminImageManager.bjs",
6  "permname" : "",
7  "modOrder" : "001",
8  "strings" : {
9   "ef797d5638c2e1c6b6225b2247541ea5" : "Upload Image or File:",
10   "d9787032e54a7facd5c7b1db2ae61c7b" : "Image Manager",
11   "53ab4599d0106e32d015649175a70d7b" : "<i class=\"fa fa-filter\"></i> Filter",
12   "37c1097cf82226d511586ecd99ed97cf" : "search for image",
13   "cdb6b6bab1fd18b9dbfe3fb84a5d34ae" : "<i class=\"fa fa-search\"></i>",
14   "5350277f16d9998c57fa7e1d17be2a76" : "<i class=\"fa fa-upload\"></i> Upload Image",
15   "14834a16229091f47cf1810177d07916" : "Created Date:",
16   "1a0ce561842e3caef9098f46ecaa1dcf" : "Add Images with Settings",
17   "78d0f5aac952e2ce840a381976a3b01e" : "Image Details",
18   "708ea0e601087e73c4764d5086e3ea3c" : "File Name:",
19   "e0a53da57dd79cca5d3b6a7c42e463ef" : "File Type:",
20   "3f986fa4066f6bded1376eb69de18da2" : "File Size:",
21   "179d4ab94c43ccb7cd6d2b3d82c7fe1f" : "Show images for this email",
22   "d3d2e617335f08df83599665eef8a418" : "Close",
23   "84378f54966381befd040dafbdc221d6" : "<i class=\"fa fa-plus\"></i> Add into the email",
24   "361bacb1a72a350ee34e2f31a6a91dab" : "Alignment:",
25   "2cd3a1900dd0060540b418b2a60f6eec" : "Show all images",
26   "ed807858fcb68abdd180481f1fcba5c5" : "<i class=\"fa fa-trash\"></i> Delete",
27   "031fa343a28d221a25d2bcd942437174" : "Alternate Text:",
28   "48ccf48dcf2218a413ce473262f21a0c" : "Width: ",
29   "d0042a700e9bdf79689d63ee6846dc0e" : "Description:",
30   "d6d93f0d6b7c6018d8949e73ed6efb6c" : "<i class=\"fa fa-save\"></i> Save Changes",
31   "e933dc24fb245d863a43b4fefe9b45f5" : "Height:"
32  },
33  "named_strings" : {
34   "align_fieldLabel" : "361bacb1a72a350ee34e2f31a6a91dab",
35   "filename_fieldLabel" : "708ea0e601087e73c4764d5086e3ea3c",
36   "add_html" : "84378f54966381befd040dafbdc221d6",
37   "created_fieldLabel" : "14834a16229091f47cf1810177d07916",
38   "height_fieldLabel" : "e933dc24fb245d863a43b4fefe9b45f5",
39   "mimetype_fieldLabel" : "e0a53da57dd79cca5d3b6a7c42e463ef",
40   "close_html" : "d3d2e617335f08df83599665eef8a418",
41   "imageUpload_fieldLabel" : "ef797d5638c2e1c6b6225b2247541ea5",
42   "width_fieldLabel" : "48ccf48dcf2218a413ce473262f21a0c",
43   "filesize_fieldLabel" : "3f986fa4066f6bded1376eb69de18da2",
44   "descript_fieldLabel" : "d0042a700e9bdf79689d63ee6846dc0e"
45  },
46  "items" : [
47   {
48    "listeners" : {
49     "resize" : "function (_self)\n{\n    if (_this.dialog && _this.container && _this.toolbar) {\n        \n        _this.document_container.el.setHeight(\n            _this.dialog.bodyEl.getHeight() -\n            _this.dialog.headerEl.getHeight() -\n            _this.toolbar.el.dom.offsetHeight -\n            _this.dialog.footerEl.getHeight()\n        );\n        \n    }\n}"
50    },
51    "String cls" : "modal-body-enable-overflow-y pman-badmin-image-manager",
52    "Boolean fitwindow" : true,
53    "xtype" : "Modal",
54    "$ xns" : "Roo.bootstrap",
55    "String title" : "Image Manager",
56    "items" : [
57     {
58      "listeners" : {
59       "click" : "function (_self, e)\n{\n    _this.dialog.hide();\n}"
60      },
61      "xtype" : "Button",
62      "$ xns" : "Roo.bootstrap",
63      "String html" : "Close",
64      "string weight" : "default",
65      "* prop" : "buttons[]",
66      "string name" : "close"
67     },
68     {
69      "xtype" : "Row",
70      "$ xns" : "Roo.bootstrap",
71      "items" : [
72       {
73        "xtype" : "Column",
74        "$ xns" : "Roo.bootstrap",
75        "Number sm" : 8,
76        "items" : [
77         {
78          "listeners" : {
79           "actionfailed" : "function (_self, action)\n{\n    if (action.type == 'submit') {\n        Roo.log(\"Upload error\");\n        Roo.log(action);\n        \n        try {\n            \n            Roo.MessageBox.alert(\"Error\", action.result.errorMsg.split(/\\n/).join('<BR/>'));\n            \n        } catch(e) {\n            \n            Roo.MessageBox.alert(\"Error\", \"Saving failed = fix errors and try again\");\n        }\n        return;\n    }\n    \n    Roo.MessageBox.alert(\"Error\", \"Error loading details\"); \n}",
80           "actioncomplete" : "function(_self,action)\n{\n    if (action.type == 'setdata') { \n        \n        _this.showType = 'public';\n        \n        this.url = _this.data._url ? baseURL + _this.data._url : baseURL + '/Roo/Images.php';\n        \n        this.el.dom.action = this.url;\n        \n        if (typeof(_this.data.timeout) != 'undefined') {\n            this.timeout = _this.data.timeout;\n        }\n        \n        this.findField('UPLOAD_IDENTIFIER').setValue(\n            (new Date() * 1) + '' + Math.random());\n        \n        _this.masonry.load();\n        \n        return;\n    }\n     \n   \n    if (action.type == 'load') {\n        \n        _this.data = action.result.data;\n        \n        return;\n    }\n    \n    \n    if (action.type == 'submit') { // only submitted here if we are \n        \n        _this.masonry.load();\n        \n        return; \n    }\n \n\n    \n}\n",
81           "render" : "function (_self)\n{\n    _this.form = this;\n    \n}"
82          },
83          "style" : "display: none;",
84          "xtype" : "Form",
85          "Number timeout" : 300,
86          "$ xns" : "Roo.bootstrap",
87          "Boolean fileUpload" : true,
88          "String method" : "POST",
89          "$ String url" : "baseURL + '/Roo/Images.php'",
90          "items" : [
91           {
92            "listeners" : {
93             "render" : "function (_self)\n{\n    _this.uploadDL = this;\n    \n    _this.uploadDL.inputEl().on(\"change\",function(){\n        \n        _this.form.findField('onid').setValue((_this.showType == 'private') ? _this.data.onid : 0);\n        _this.form.doAction('submit');\n        \n        //_this.dialog.uploadProgress.defer(1000, _this.dialog);\n    });\n    \n    \n}"
94            },
95            "String name" : "imageUpload",
96            "xtype" : "Input",
97            "string fieldLabel" : "Upload Image or File:",
98            "String inputType" : "file",
99            "$ xns" : "Roo.bootstrap",
100            "Number labelWidth" : 4
101           },
102           {
103            "String name" : "UPLOAD_IDENTIFIER",
104            "xtype" : "Input",
105            "String inputType" : "hidden",
106            "$ xns" : "Roo.bootstrap"
107           },
108           {
109            "String name" : "post_max_size",
110            "xtype" : "Input",
111            "String inputType" : "hidden",
112            "$ xns" : "Roo.bootstrap"
113           },
114           {
115            "String name" : "upload_max_filesize",
116            "xtype" : "Input",
117            "String inputType" : "hidden",
118            "$ xns" : "Roo.bootstrap"
119           },
120           {
121            "String name" : "ontable",
122            "xtype" : "Input",
123            "String inputType" : "hidden",
124            "$ xns" : "Roo.bootstrap"
125           },
126           {
127            "String name" : "onid",
128            "xtype" : "Input",
129            "String inputType" : "hidden",
130            "$ xns" : "Roo.bootstrap"
131           },
132           {
133            "String name" : "id",
134            "xtype" : "Input",
135            "String inputType" : "hidden",
136            "$ xns" : "Roo.bootstrap"
137           }
138          ]
139         },
140         {
141          "listeners" : {
142           "render" : "function (_self)\n{\n    _this.container = this;\n    \n}"
143          },
144          "String cls" : "col-md-12",
145          "xtype" : "Container",
146          "$ xns" : "Roo.bootstrap",
147          "items" : [
148           {
149            "listeners" : {
150             "render" : "function (_self)\n{\n    _this.toolbar = this;\n}"
151            },
152            "xtype" : "Row",
153            "$ xns" : "Roo.bootstrap",
154            "items" : [
155             {
156              "Number md" : 8,
157              "xtype" : "Column",
158              "$ xns" : "Roo.bootstrap",
159              "Number sm" : 12,
160              "items" : [
161               {
162                "xtype" : "Button",
163                "$ xns" : "Roo.bootstrap",
164                "String html" : "<i class=\"fa fa-filter\"></i> Filter",
165                "items" : [
166                 {
167                  "xtype" : "Menu",
168                  "$ xns" : "Roo.bootstrap",
169                  "* prop" : "menu",
170                  "items" : [
171                   {
172                    "listeners" : {
173                     "click" : "function (_self, e)\n{\n    _this.showType = 'private';\n    \n    _this.masonry.load();\n}"
174                    },
175                    "Boolean preventDefault" : true,
176                    "xtype" : "MenuItem",
177                    "$ xns" : "Roo.bootstrap",
178                    "Boolean isContainer" : false,
179                    "String html" : "Show images for this email"
180                   },
181                   {
182                    "listeners" : {
183                     "click" : "function (_self, e)\n{\n    _this.showType = 'public';\n    \n    _this.masonry.load();\n}"
184                    },
185                    "Boolean preventDefault" : true,
186                    "xtype" : "MenuItem",
187                    "$ xns" : "Roo.bootstrap",
188                    "Boolean isContainer" : false,
189                    "String html" : "Show all images"
190                   }
191                  ]
192                 }
193                ]
194               },
195               {
196                "listeners" : {
197                 "specialkey" : "function (_self, e)\n{    \n    \n    var image_name = \"\";\n    \n    if(e.keyCode == e.ENTER) {\n        _this.masonry.clearAll();\n        _this.masonry.load();\n    \n    }\n}",
198                 "render" : "function (_self)\n{\n    _this.searchBox = this;\n}"
199                },
200                "xtype" : "Input",
201                "string placeholder" : "search for image",
202                "$ xns" : "Roo.bootstrap",
203                "String style" : "width: 200px; margin-left: 15px;",
204                "items" : [
205                 {
206                  "listeners" : {
207                   "click" : "function (_self, e)\n{\n    _this.masonry.clearAll();\n    _this.masonry.load();\n}"
208                  },
209                  "xtype" : "Button",
210                  "$ xns" : "Roo.bootstrap",
211                  "String html" : "<i class=\"fa fa-search\"></i>",
212                  "* prop" : "after"
213                 }
214                ]
215               }
216              ]
217             },
218             {
219              "Number md" : 4,
220              "String cls" : "text-right",
221              "xtype" : "Column",
222              "$ xns" : "Roo.bootstrap",
223              "Number sm" : 12,
224              "items" : [
225               {
226                "listeners" : {
227                 "click" : "function (_self, e)\n{\n    var id = _this.data.onid;\n    \n    if(id*1 < 1){\n        Roo.MessageBox.alert('Error', 'Please save the email template first');\n        return;\n    }\n    \n    _this.uploadDL.inputEl().dom.click();\n}"
228                },
229                "String size" : "sm",
230                "xtype" : "Button",
231                "$ xns" : "Roo.bootstrap",
232                "String html" : "<i class=\"fa fa-upload\"></i> Upload Image",
233                "string weight" : "primary"
234               },
235               {
236                "listeners" : {
237                 "render" : "function (_self)\n{\n    _this.deleteBtn = this;\n    \n    this.hide();\n}",
238                 "click" : "function (_self, e)\n{\n    if (_this.masonry.getSelected().length > 1) {\n        Roo.bootstrap.MessageBox.alert('Cannot delete the images !','Please select one image only');\n        return;\n    }\n    \n    if (_this.masonry.getSelected().length < 1) {\n        Roo.bootstrap.MessageBox.alert('Cannot delete any image!', 'Please select an image');\n        return;\n    }\n    \n    Roo.bootstrap.MessageBox.confirm(\"Confirm\", \"Are sure you want to delete this image?\", function (v){\n        if (v != 'yes') {\n            return;\n        }\n        \n        new Pman.Request({\n            url : baseURL + '/Roo/Images.php',\n            method: 'POST',\n            params : {\n                _delete : Roo.bootstrap.MasonryBrick.get(_this.masonry.getSelected()[0]).imageObj.id\n            },\n            success : function()\n            {\n//                _this.masonry.removeBrick(_this.masonry.getSelected()[0]);\n                _this.masonry.load();\n            }\n        });\n    });\n}"
239                },
240                "String size" : "sm",
241                "String weight" : "default",
242                "xtype" : "Button",
243                "$ xns" : "Roo.bootstrap",
244                "String html" : "<i class=\"fa fa-trash\"></i> Delete",
245                "String style" : "margin-left: 15px;"
246               }
247              ]
248             }
249            ]
250           },
251           {
252            "listeners" : {
253             "render" : "function (_self)\n{\n    _this.document_container = this;\n    \n    this.el.setStyle('overflow', 'auto');\n}"
254            },
255            "xtype" : "Row",
256            "$ xns" : "Roo.bootstrap",
257            "String style" : "margin-top: 15px;",
258            "items" : [
259             {
260              "Number md" : 12,
261              "xtype" : "Column",
262              "$ xns" : "Roo.bootstrap",
263              "items" : [
264               {
265                "listeners" : {
266                 "render" : "function (_self)\n{\n    _this.masonry = this;\n    \n}"
267                },
268                "Boolean isLayoutInstant" : false,
269                "| function load" : "function() \n{\n    _this.setting_form.reset();\n    _this.detail_form.reset();\n    \n    _this.setting_form.hide();\n    _this.detail_form.hide();\n    \n    _this.masonry.clearAll();\n    \n    new Pman.Request({\n        url: baseURL + '/Roo/Images',\n        method: 'GET',\n        params: {\n            ontable : 'core_email',\n            onid : (_this.showType == 'private') ? _this.data.onid : 0,\n            'search[filename]' : _this.searchBox.getValue()\n        },\n        success: function(ret) {\n            \n            if(!ret.data.length){\n                return;\n            }\n            \n            Roo.each(ret.data, function(r){\n                \n                _this.masonry.addBrick({\n                    size: 'md',\n                    boxWidth: 150,\n                    cls: 'coba-image-mgmt-masonry-brick',\n                    active: false,\n                    activeClass: 'active',\n                    preventDefault: true,\n                    bgimage : baseURL + '/Images/' + r.id + '/' + r.filename.replace('%', '-'),\n                    imageObj: r,\n                    listeners : {\n                        click : function (_self)\n                        {\n                            _this.setting_form.reset();\n                            _this.detail_form.reset();\n                            \n                            _this.setting_form.hide();\n                            _this.detail_form.hide();\n                            \n                            _this.deleteBtn.hide();\n                            \n                            if(!this.isSelected()){\n                                return;\n                            }\n                            \n                            if(_this.masonry.getSelected().length == 1){\n                                _this.deleteBtn.show();\n                            }\n                            \n                            new Pman.Request({\n                                url: baseURL + '/Roo/Images.php',\n                                method : 'GET',\n                                params : {\n                                    _id: _self.imageObj.id\n                                }, \n                                success : function(rr) {\n                                    \n                                    _this.setting_form.show();\n                                    _this.detail_form.show();\n                                    \n                                    _this.detail_form.setValues(rr.data);\n                                    _this.setting_form.setValues(rr.data);\n                                    \n                                    _this.setting_form.findField('align').setValue(\"left\");\n                                    \n                                    _self.imageObj = rr.data;\n                                }\n                            });\n                            \n                        }\n                     }\n                })\n                \n            });\n            \n            _this.masonry.initial();\n            \n         },\n         \n         failure: function(res) {\n             Roo.log('cannot read Coba/Roo/Images');\n         }\n     });\n}",
270                "Number boxWidth" : 250,
271                "xtype" : "LayoutMasonry",
272                "$ xns" : "Roo.bootstrap",
273                "string activeClass" : "active",
274                "Boolean isAutoInitial" : false
275               }
276              ]
277             }
278            ]
279           }
280          ]
281         }
282        ]
283       },
284       {
285        "xtype" : "Column",
286        "$ xns" : "Roo.bootstrap",
287        "Number sm" : 4,
288        "items" : [
289         {
290          "xtype" : "Row",
291          "$ xns" : "Roo.bootstrap",
292          "items" : [
293           {
294            "Number md" : 12,
295            "xtype" : "Column",
296            "$ xns" : "Roo.bootstrap",
297            "items" : [
298             {
299              "listeners" : {
300               "render" : "function (_self)\n{\n    _this.setting_form = this;\n}"
301              },
302              "$ string url" : "baseURL + '/Roo/Images'\n",
303              "xtype" : "Form",
304              "$ xns" : "Roo.bootstrap",
305              "Boolean loadMask" : true,
306              "items" : [
307               {
308                "String header" : "Add Images with Settings",
309                "$ String panel" : "'default'",
310                "xtype" : "Container",
311                "$ xns" : "Roo.bootstrap",
312                "String style" : "width: 100%;",
313                "items" : [
314                 {
315                  "xtype" : "Row",
316                  "$ xns" : "Roo.bootstrap",
317                  "items" : [
318                   {
319                    "Number md" : 12,
320                    "xtype" : "Column",
321                    "$ xns" : "Roo.bootstrap",
322                    "items" : [
323                     {
324                      "String name" : "descript",
325                      "xtype" : "Input",
326                      "string fieldLabel" : "Alternate Text:",
327                      "cls" : "row-style",
328                      "$ xns" : "Roo.bootstrap",
329                      "Number labelWidth" : 4
330                     }
331                    ]
332                   }
333                  ]
334                 },
335                 {
336                  "xtype" : "Row",
337                  "$ xns" : "Roo.bootstrap",
338                  "items" : [
339                   {
340                    "Number md" : 12,
341                    "xtype" : "Column",
342                    "$ xns" : "Roo.bootstrap",
343                    "String style" : "margin-top:15px;",
344                    "items" : [
345                     {
346                      "String name" : "height",
347                      "xtype" : "Input",
348                      "string fieldLabel" : "Height:",
349                      "cls" : "row-style",
350                      "$ xns" : "Roo.bootstrap",
351                      "Number labelWidth" : 4
352                     }
353                    ]
354                   }
355                  ]
356                 },
357                 {
358                  "xtype" : "Row",
359                  "$ xns" : "Roo.bootstrap",
360                  "items" : [
361                   {
362                    "Number md" : 12,
363                    "xtype" : "Column",
364                    "$ xns" : "Roo.bootstrap",
365                    "String style" : "margin-top:15px;",
366                    "items" : [
367                     {
368                      "String name" : "width",
369                      "xtype" : "Input",
370                      "string fieldLabel" : "Width: ",
371                      "cls" : "row-style",
372                      "$ xns" : "Roo.bootstrap",
373                      "Number labelWidth" : 4
374                     }
375                    ]
376                   }
377                  ]
378                 },
379                 {
380                  "xtype" : "Row",
381                  "$ xns" : "Roo.bootstrap",
382                  "items" : [
383                   {
384                    "Number md" : 12,
385                    "xtype" : "Column",
386                    "$ xns" : "Roo.bootstrap",
387                    "String style" : "margin-top:15px;",
388                    "items" : [
389                     {
390                      "Boolean allowBlank" : true,
391                      "Boolean selectOnFocus" : true,
392                      "String name" : "align",
393                      "String mode" : "local",
394                      "String valueField" : "code",
395                      "xtype" : "ComboBox",
396                      "Boolean editable" : false,
397                      "String triggerAction" : "all",
398                      "string fieldLabel" : "Alignment:",
399                      "Boolean alwaysQuery" : true,
400                      "cls" : "row-style",
401                      "$ xns" : "Roo.bootstrap",
402                      "Number labelWidth" : 4,
403                      "String displayField" : "value",
404                      "Boolean forceSelection" : true,
405                      "items" : [
406                       {
407                        "$ Array fields" : "['code', 'value']",
408                        "xtype" : "SimpleStore",
409                        "$ xns" : "Roo.data",
410                        "* prop" : "store",
411                        "| Array data" : "[\n    ['left', 'left'],\n    ['right', 'right'],\n    ['middle', 'middle'],\n    ['top', 'top'],\n    ['bottom', 'bottom']\n]"
412                       }
413                      ]
414                     }
415                    ]
416                   }
417                  ]
418                 },
419                 {
420                  "xtype" : "Row",
421                  "$ xns" : "Roo.bootstrap",
422                  "items" : [
423                   {
424                    "Number md" : 12,
425                    "String cls" : "text-center",
426                    "xtype" : "Column",
427                    "$ xns" : "Roo.bootstrap",
428                    "String style" : "margin-top:15px;",
429                    "items" : [
430                     {
431                      "listeners" : {
432                       "click" : "function (_self, e)\n{\n    var b = _this.masonry.getSelected();\n    \n    if (b.length < 1) {\n        \n        Roo.bootstrap.MessageBox.alert('Cannot add any image', 'Please select an image');\n        return;\n    }\n    \n    var brick = Roo.bootstrap.MasonryBrick.get(b[0]);\n    \n    _this.dialog.hide();\n\n    if(_this.callback){\n        \n        var data = {\n            id : brick.imageObj.id,\n            filename : brick.imageObj.filename,\n            width : _this.setting_form.findField('width').getValue(),\n            height : _this.setting_form.findField('height').getValue(),\n            descript : _this.setting_form.findField('descript').getValue(),\n            align : _this.setting_form.findField('align').getValue()\n        };\n        \n        _this.callback.call(_this, data);\n        \n    }\n}"
433                      },
434                      "String weight" : "default",
435                      "xtype" : "Button",
436                      "$ xns" : "Roo.bootstrap",
437                      "String html" : "<i class=\"fa fa-plus\"></i> Add into the email",
438                      "name" : "add"
439                     }
440                    ]
441                   }
442                  ]
443                 }
444                ]
445               }
446              ]
447             }
448            ]
449           }
450          ]
451         },
452         {
453          "xtype" : "Row",
454          "$ xns" : "Roo.bootstrap",
455          "items" : [
456           {
457            "Number md" : 12,
458            "xtype" : "Column",
459            "$ xns" : "Roo.bootstrap",
460            "items" : [
461             {
462              "listeners" : {
463               "render" : "function (_self)\n{\n    _this.detail_form = this;\n}"
464              },
465              "xtype" : "Form",
466              "$ xns" : "Roo.bootstrap",
467              "Boolean loadMask" : true,
468              "$ String url" : "baseURL + '/Roo/Images'",
469              "items" : [
470               {
471                "xtype" : "Container",
472                "string header" : "Image Details",
473                "$ xns" : "Roo.bootstrap",
474                "String style" : "width: 100%; padding: 0",
475                "$ string panel" : "'default'",
476                "items" : [
477                 {
478                  "xtype" : "Row",
479                  "$ xns" : "Roo.bootstrap",
480                  "items" : [
481                   {
482                    "Number md" : 12,
483                    "xtype" : "Column",
484                    "$ xns" : "Roo.bootstrap",
485                    "items" : [
486                     {
487                      "String name" : "filename",
488                      "style" : "padding: 0;",
489                      "xtype" : "Input",
490                      "string fieldLabel" : "File Name:",
491                      "cls" : "row-style",
492                      "Boolean disabled" : true,
493                      "$ xns" : "Roo.bootstrap",
494                      "Number labelWidth" : 4
495                     }
496                    ]
497                   }
498                  ]
499                 },
500                 {
501                  "xtype" : "Row",
502                  "$ xns" : "Roo.bootstrap",
503                  "items" : [
504                   {
505                    "Number md" : 12,
506                    "xtype" : "Column",
507                    "$ xns" : "Roo.bootstrap",
508                    "String style" : "margin-top:15px;",
509                    "items" : [
510                     {
511                      "String name" : "mimetype",
512                      "xtype" : "Input",
513                      "string fieldLabel" : "File Type:",
514                      "cls" : "row-style",
515                      "Boolean disabled" : true,
516                      "$ xns" : "Roo.bootstrap",
517                      "Number labelWidth" : 4
518                     }
519                    ]
520                   }
521                  ]
522                 },
523                 {
524                  "xtype" : "Row",
525                  "$ xns" : "Roo.bootstrap",
526                  "items" : [
527                   {
528                    "Number md" : 12,
529                    "xtype" : "Column",
530                    "$ xns" : "Roo.bootstrap",
531                    "String style" : "margin-top:15px;",
532                    "items" : [
533                     {
534                      "String name" : "filesize",
535                      "xtype" : "Input",
536                      "string fieldLabel" : "File Size:",
537                      "cls" : "row-style",
538                      "Boolean disabled" : true,
539                      "$ xns" : "Roo.bootstrap",
540                      "Number labelWidth" : 4
541                     }
542                    ]
543                   }
544                  ]
545                 },
546                 {
547                  "xtype" : "Row",
548                  "$ xns" : "Roo.bootstrap",
549                  "items" : [
550                   {
551                    "Number md" : 12,
552                    "xtype" : "Column",
553                    "$ xns" : "Roo.bootstrap",
554                    "String style" : "margin-top:15px;",
555                    "items" : [
556                     {
557                      "String name" : "created",
558                      "xtype" : "Input",
559                      "string fieldLabel" : "Created Date:",
560                      "cls" : "row-style",
561                      "Boolean disabled" : true,
562                      "$ xns" : "Roo.bootstrap",
563                      "Number labelWidth" : 4
564                     }
565                    ]
566                   }
567                  ]
568                 },
569                 {
570                  "xtype" : "Row",
571                  "$ xns" : "Roo.bootstrap",
572                  "items" : [
573                   {
574                    "Number md" : 12,
575                    "xtype" : "Column",
576                    "$ xns" : "Roo.bootstrap",
577                    "String style" : "margin-top:15px;",
578                    "items" : [
579                     {
580                      "String name" : "descript",
581                      "xtype" : "Input",
582                      "string fieldLabel" : "Description:",
583                      "cls" : "row-style",
584                      "$ xns" : "Roo.bootstrap",
585                      "Number labelWidth" : 4
586                     }
587                    ]
588                   }
589                  ]
590                 },
591                 {
592                  "String name" : "id",
593                  "xtype" : "Input",
594                  "String inputType" : "hidden",
595                  "$ xns" : "Roo.bootstrap"
596                 },
597                 {
598                  "xtype" : "Row",
599                  "$ xns" : "Roo.bootstrap",
600                  "items" : [
601                   {
602                    "Number md" : 12,
603                    "String cls" : "text-center",
604                    "xtype" : "Column",
605                    "$ xns" : "Roo.bootstrap",
606                    "String style" : "margin-top:15px;",
607                    "items" : [
608                     {
609                      "listeners" : {
610                       "click" : "function (_self, e)\n{\n    _this.detail_form.doAction('submit');\n}"
611                      },
612                      "String weight" : "default",
613                      "xtype" : "Button",
614                      "$ xns" : "Roo.bootstrap",
615                      "String html" : "<i class=\"fa fa-save\"></i> Save Changes"
616                     }
617                    ]
618                   }
619                  ]
620                 }
621                ]
622               }
623              ]
624             }
625            ]
626           }
627          ]
628         }
629        ]
630       }
631      ]
632     }
633    ]
634   }
635  ]
636 }