--- /dev/null
+{
+ "items" : [
+ {
+ "$ xns" : "Roo",
+ "Boolean closable" : true,
+ "collapsible" : false,
+ "height" : 200,
+ "items" : [
+ {
+ "$ xns" : "Roo",
+ "* prop" : "center",
+ "xtype" : "LayoutRegion"
+ },
+ {
+ "$ xns" : "Roo",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Roo/core_notify_sender'",
+ "$ xns" : "Roo.form",
+ "items" : [
+ {
+ "$ xns" : "Roo.form",
+ "String vtype" : "email",
+ "allowBlank" : false,
+ "fieldLabel" : "Email",
+ "name" : "email",
+ "width" : 200,
+ "xtype" : "TextField"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "allowBlank" : false,
+ "fieldLabel" : "Pool Name",
+ "name" : "poolname",
+ "width" : 200,
+ "xtype" : "TextField"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "String fieldLabel" : "Is Active?",
+ "String name" : "is_active",
+ "xtype" : "Checkbox"
+ },
+ {
+ "$ xns" : "Roo.form",
+ "name" : "id",
+ "xtype" : "Hidden"
+ }
+ ],
+ "labelWidth" : 150,
+ "listeners" : {
+ "actionfailed" : [
+ "function (_self, action)",
+ "{",
+ " _this.dialog.el.unmask();",
+ " ",
+ " Pman.standardActionFailed(_self, action);",
+ "}"
+ ],
+ "|actioncomplete" : [
+ "function(_self,action)",
+ "{",
+ " if (action.type == 'setdata') {",
+ " ",
+ " if (_this.data.clone_of) {",
+ " _this.dialog.el.mask(\"Loading\");",
+ " this.load({ method: 'GET', params: { '_id' : _this.data.clone_of }});",
+ " }",
+ " return;",
+ " }",
+ " if (action.type == 'load') {",
+ " _this.dialog.el.unmask();",
+ " // unset the id..",
+ " ",
+ " return;",
+ " }",
+ " if (action.type =='submit') {",
+ " ",
+ " _this.dialog.el.unmask();",
+ " _this.dialog.hide();",
+ " ",
+ " ",
+ " _this.form.reset();",
+ " ",
+ " _this.callback.call(_this, action.result.data);",
+ " ",
+ " ",
+ " return;",
+ " }",
+ "}",
+ ""
+ ],
+ "|rendered" : [
+ "function (form)",
+ "{",
+ " _this.form= form;",
+ "}",
+ ""
+ ]
+ },
+ "method" : "POST",
+ "style" : "margin:10px;",
+ "xtype" : "Form"
+ }
+ ],
+ "region" : "center",
+ "xtype" : "ContentPanel"
+ },
+ {
+ "$ xns" : "Roo",
+ "* prop" : "buttons[]",
+ "listeners" : {
+ "click" : [
+ "function (_self, e)",
+ "{",
+ " _this.dialog.hide();",
+ "",
+ "}"
+ ]
+ },
+ "text" : "Cancel",
+ "xtype" : "Button"
+ },
+ {
+ "$ xns" : "Roo",
+ "* prop" : "buttons[]",
+ "listeners" : {
+ "click" : [
+ "function (_self, e)",
+ "{",
+ " ",
+ " _this.form.doAction(\"submit\");",
+ "",
+ "}"
+ ]
+ },
+ "text" : "Save",
+ "xtype" : "Button"
+ }
+ ],
+ "modal" : true,
+ "resizable" : false,
+ "title" : "Add / Edit Sender",
+ "width" : 500,
+ "xtype" : "LayoutDialog"
+ }
+ ],
+ "modOrder" : "001",
+ "name" : "Pman.Dialog.AdminNotifySender",
+ "named_strings" : {
+ "email_fieldLabel" : "ce8ae9da5b7cd6c3df2929543a9af92d",
+ "is_active_fieldLabel" : "e253f01e45700c07327115a5e6d677bf",
+ "poolname_fieldLabel" : "7e240928383acb93e5066a6149430337"
+ },
+ "parent" : "",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Dialog.AdminNotifySender.bjs",
+ "permname" : "",
+ "strings" : {
+ "7e240928383acb93e5066a6149430337" : "Pool Name",
+ "b46cf6d1278a6e8ba1e1fb3290ad9166" : "Add / Edit Sender",
+ "c9cc8cce247e49bae79f15173ce97354" : "Save",
+ "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
+ "e253f01e45700c07327115a5e6d677bf" : "Is Active?",
+ "ea4788705e6873b424c65e91c2846b19" : "Cancel"
+ },
+ "title" : ""
+}
\ No newline at end of file
--- /dev/null
+//<script type="text/javascript">
+
+// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+
+Roo.namespace('Pman.Dialog');
+
+Pman.Dialog.AdminNotifySender = {
+
+ _strings : {
+ 'b46cf6d1278a6e8ba1e1fb3290ad9166' :"Add / Edit Sender",
+ 'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
+ '7e240928383acb93e5066a6149430337' :"Pool Name",
+ 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
+ 'e253f01e45700c07327115a5e6d677bf' :"Is Active?",
+ 'c9cc8cce247e49bae79f15173ce97354' :"Save"
+ },
+ _named_strings : {
+ 'is_active_fieldLabel' : 'e253f01e45700c07327115a5e6d677bf' /* Is Active? */ ,
+ 'poolname_fieldLabel' : '7e240928383acb93e5066a6149430337' /* Pool Name */ ,
+ 'email_fieldLabel' : 'ce8ae9da5b7cd6c3df2929543a9af92d' /* Email */
+ },
+
+ dialog : false,
+ callback: false,
+
+ show : function(data, cb)
+ {
+ if (!this.dialog) {
+ this.create();
+ }
+
+ this.callback = cb;
+ this.data = data;
+ this.dialog.show.apply(this.dialog, Array.prototype.slice.call(arguments).slice(2));
+ if (this.form) {
+ this.form.reset();
+ this.form.setValues(data);
+ this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
+ }
+
+ },
+
+ create : function()
+ {
+ var _this = this;
+ this.dialog = Roo.factory({
+ xtype : 'LayoutDialog',
+ closable : true,
+ collapsible : false,
+ height : 200,
+ modal : true,
+ resizable : false,
+ title : _this._strings['b46cf6d1278a6e8ba1e1fb3290ad9166'] /* Add / Edit Sender */,
+ width : 500,
+ xns : Roo,
+ '|xns' : 'Roo',
+ center : {
+ xtype : 'LayoutRegion',
+ xns : Roo,
+ '|xns' : 'Roo'
+ },
+ buttons : [
+ {
+ xtype : 'Button',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ },
+ {
+ xtype : 'Button',
+ text : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
+ listeners : {
+ click : function (_self, e)
+ {
+
+ _this.form.doAction("submit");
+
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ }
+ ],
+ items : [
+ {
+ xtype : 'ContentPanel',
+ region : 'center',
+ xns : Roo,
+ '|xns' : 'Roo',
+ items : [
+ {
+ xtype : 'Form',
+ labelWidth : 150,
+ method : 'POST',
+ style : 'margin:10px;',
+ url : baseURL + '/Roo/core_notify_sender',
+ listeners : {
+ actioncomplete : function(_self,action)
+ {
+ if (action.type == 'setdata') {
+
+ if (_this.data.clone_of) {
+ _this.dialog.el.mask("Loading");
+ this.load({ method: 'GET', params: { '_id' : _this.data.clone_of }});
+ }
+ return;
+ }
+ if (action.type == 'load') {
+ _this.dialog.el.unmask();
+ // unset the id..
+
+ return;
+ }
+ if (action.type =='submit') {
+
+ _this.dialog.el.unmask();
+ _this.dialog.hide();
+
+
+ _this.form.reset();
+
+ _this.callback.call(_this, action.result.data);
+
+
+ return;
+ }
+ },
+ actionfailed : function (_self, action)
+ {
+ _this.dialog.el.unmask();
+
+ Pman.standardActionFailed(_self, action);
+ },
+ rendered : function (form)
+ {
+ _this.form= form;
+ }
+ },
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ items : [
+ {
+ xtype : 'TextField',
+ allowBlank : false,
+ fieldLabel : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
+ name : 'email',
+ vtype : 'email',
+ width : 200,
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
+ },
+ {
+ xtype : 'TextField',
+ allowBlank : false,
+ fieldLabel : _this._strings['7e240928383acb93e5066a6149430337'] /* Pool Name */,
+ name : 'poolname',
+ width : 200,
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
+ },
+ {
+ xtype : 'Checkbox',
+ fieldLabel : _this._strings['e253f01e45700c07327115a5e6d677bf'] /* Is Active? */,
+ name : 'is_active',
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
+ },
+ {
+ xtype : 'Hidden',
+ name : 'id',
+ xns : Roo.form,
+ '|xns' : 'Roo.form'
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ });
+ }
+};