"background" : true,
"title" : "Add Notification Keywords",
"xtype" : "LayoutDialog",
- "width" : 400,
+ "width" : 600,
"$ xns" : "Roo",
"closable" : false,
"resizable" : false,
- "height" : 150,
+ "height" : 180,
"items" : [
{
"xtype" : "LayoutRegion",
"forceSelection" : true,
"selectOnFocus" : true,
"pageSize" : 20,
- "Number width" : 200,
+ "Number width" : 400,
"displayField" : "name",
"emptyText" : "Select Campaign",
"hiddenName" : "campaign_id",
]
},
{
- "fieldLabel" : "Company Types",
- "hiddenName" : "filter_company_type",
+ "Boolean allowBlank" : false,
+ "fieldLabel" : "Keywords",
+ "hiddenName" : "keyword_filters",
"xtype" : "ComboBoxArray",
- "width" : 210,
+ "width" : 410,
"$ xns" : "Roo.form",
- "name" : "filter_company_type_name",
+ "name" : "keyword_filters_name",
"items" : [
{
"alwaysQuery" : true,
- "listWidth" : 200,
- "idField" : "id",
+ "listWidth" : 400,
"triggerAction" : "all",
- "fieldLabel" : "company",
+ "fieldLabel" : "Keyword",
"forceSelection" : true,
"displayField" : "keyword",
"minChars" : 2,
"xtype" : "ComboBox",
"allowBlank" : true,
"editable" : true,
- "width" : 200,
+ "width" : 400,
"$ xns" : "Roo.form",
"* prop" : "combo",
- "queryParam" : "search[display_name]",
+ "queryParam" : "query[keyword]",
"tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{keyword}</b> </div>",
"items" : [
{
},
{
"listeners" : {
- "|click" : "function() {\n /*\n var name = _this.form.findField('name').getValue();\n name = name.toUpperCase().replace(/[^A-Z]+/g, '');\n if (!name.length) {\n Roo.MessageBox.alert(\"Error\",\"Please fill in a valid name\");\n return;\n }\n _this.form.findField('name').setValue(name);\n \n _this.form.doAction('submit');\n */\n \n}"
+ "|click" : "function() {\n \n _this.form.doAction('submit');\n \n}"
},
"text" : "OK",
"xtype" : "Button",