2 "name" : "Pman.Dialog.BuilderAdd",
4 "title" : "Pman.Dialog.BuilderAdd",
5 "path" : "/home/alan/gitlive/Pman.Builder/Pman.Dialog.BuilderAdd.bjs",
12 "xtype" : "LayoutDialog",
21 "xtype" : "ContentPanel",
26 "actioncomplete" : "function (_self, action)\n{\n if (action.type == 'setdata') {\n // check if element can be templated or databased..\n \n \n }\n}",
27 "rendered" : "function (form)\n{\n _this.form = form;\n}"
33 "style" : "width:350px",
34 "legend" : "Do you want to create the element ?",
40 "fieldLabel" : "From Template",
55 "triggerAction" : "all",
56 "fieldLabel" : "From Database Table",
57 "displayField" : "name",
62 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {desc}</div>",
70 "$ url" : "baseURL + '/Builder/ERM.php'",
71 "xtype" : "HttpProxy",
78 "xtype" : "JsonReader",
79 "$ fields" : "[ 'name' , 'desc' ]\n ",
82 "totalProperty" : "total"
95 "xtype" : "LayoutRegion",
101 "click" : "function (_self, e)\n{\n var vals = _this.form.getValues();\n \n _this.dialog.hide();\n \n if (vals.table.length) {\n Pman.Dialog.BuilderAddTable.show( \n Roo.apply({ table : vals.table } , _this.data), \n \n function(data) {\n _this.dialog.hide();\n var cls = data['|xns'] + '.' + data['xtype'];\n \n var res = Pman.Builder.Wizard[cls](data);\n _this.callback(res); \n });\n return;\n }\n \n // otherwise, call back with template??\n \n \n _this.callback(_this.data);\n}"
106 "* prop" : "buttons[]"
110 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
115 "* prop" : "buttons[]"