"396ecabf0cd1f9503e591418851ef406" : "Edit / Create Message",
"b9c49611cfda3259a2b837b39489e650" : "Add Image",
"ea4788705e6873b424c65e91c2846b19" : "Cancel",
+ "c4ca4238a0b923820dcc509a6f75849b" : "1",
"bd88a20b53a47f7b5704a83a15ff5506" : "Saved Version",
"b20a8b77b05d53b4e695738731400c85" : "Mailout Name",
"1bd18d39370b7f26c1c5e18067b74c6f" : "Html File",
"Boolean hideLabels" : true,
"items" : [
{
+ "listeners" : {
+ "check" : "function (_self, checked)\n{\n var boxLabel = 'Enabled - will be sent out';\n \n if(!checked){\n boxLabel = 'Disabled - will NOT be sent out';\n }\n \n this.setBoxLabel(boxLabel);\n}"
+ },
+ "String name" : "active",
+ "Boolean checked" : true,
"xtype" : "Checkbox",
- "String boxLabel" : "Enabled",
- "$ xns" : "Roo.form"
+ "String valueOff" : 0,
+ "String boxLabel" : "Enabled - will be sent out",
+ "$ xns" : "Roo.form",
+ "Mixed value" : 1
}
]
}
"width" : 300,
"$ xns" : "Roo.form",
"name" : "from_email"
+ },
+ {
+ "listeners" : {
+ "select" : "function (combo, record, index)\n{\n \n/*\n (function() { \n combo.setValue('');\n }).defer(100);\n*/ \n if(!record){\n return;\n }\n _this.form.findField('bodytext').setValue(record.data.content);\n\n}"
+ },
+ "alwaysQuery" : true,
+ "listWidth" : 400,
+ "triggerAction" : "all",
+ "fieldLabel" : "Template",
+ "forceSelection" : true,
+ "selectOnFocus" : true,
+ "pageSize" : 20,
+ "displayField" : "file",
+ "emptyText" : "Select Template",
+ "hiddenName" : "template",
+ "minChars" : 2,
+ "valueField" : "file",
+ "xtype" : "ComboBox",
+ "allowBlank" : true,
+ "typeAhead" : true,
+ "editable" : false,
+ "width" : 200,
+ "$ xns" : "Roo.form",
+ "name" : "template",
+ "qtip" : "Select Template",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{file}</b> </div>",
+ "loadingText" : "Searching...",
+ "items" : [
+ {
+ "listeners" : {
+ "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n}\n"
+ },
+ "xtype" : "Store",
+ "remoteSort" : true,
+ "$ sortInfo" : "{ direction : 'DESC', field: 'file' }",
+ "$ xns" : "Roo.data",
+ "* prop" : "store",
+ "items" : [
+ {
+ "$ url" : "baseURL + '/Core/MailTemplateList.php'",
+ "xtype" : "HttpProxy",
+ "method" : "GET",
+ "$ xns" : "Roo.data",
+ "* prop" : "proxy"
+ },
+ {
+ "id" : "name",
+ "root" : "data",
+ "xtype" : "JsonReader",
+ "$ fields" : "[{\"name\":\"file\",\"type\":\"string\"},{\"name\":\"content\",\"type\":\"string\"}]",
+ "$ xns" : "Roo.data",
+ "* prop" : "reader",
+ "totalProperty" : "total"
+ }
+ ]
+ }
+ ]
}
]
},