From: Alan Date: Thu, 2 Nov 2023 08:05:53 +0000 (+0800) Subject: sync X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=HEAD sync --- diff --git a/Pman.Dialog.AdminNotifySender.bjs b/Pman.Dialog.AdminNotifySender.bjs new file mode 100644 index 0000000..e6f9446 --- /dev/null +++ b/Pman.Dialog.AdminNotifySender.bjs @@ -0,0 +1,167 @@ +{ + "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 diff --git a/Pman.Dialog.AdminNotifySender.js b/Pman.Dialog.AdminNotifySender.js new file mode 100644 index 0000000..ac36db6 --- /dev/null +++ b/Pman.Dialog.AdminNotifySender.js @@ -0,0 +1,188 @@ +//