From: Edward Date: Mon, 3 Sep 2018 04:12:41 +0000 (+0800) Subject: Pman.Dialog.CmsBlog.bjs X-Git-Url: http://git.roojs.org/?p=Pman.Cms;a=commitdiff_plain;h=08960d340e80e473364428b9400a27f81635e13b Pman.Dialog.CmsBlog.bjs Pman.Dialog.CmsBlog.js --- diff --git a/Pman.Dialog.CmsBlog.bjs b/Pman.Dialog.CmsBlog.bjs index e64f68da..6458771b 100644 --- a/Pman.Dialog.CmsBlog.bjs +++ b/Pman.Dialog.CmsBlog.bjs @@ -16,8 +16,10 @@ "a517747c3d12f99244ae598910d979c5" : "Author", "31fde7b05ac8952dacf4af8a704074ec" : "Preview", "779e2624ddf330fb05b51ae59faf212d" : "Select Status Type", + "5834d26e96dbae06029496e5b111dca2" : "Has Extended content?", "6a5b847af3d97df722040debdbccfbed" : "Page Type", "30d1a216420426fcbd43ca70acd4aa48" : "Select interests", + "f03ab16cd58372c77ba45a3d9a5a1cb9" : "Draft", "cc6892c9705afcfa61c53698756ba51b" : "Page Class", "e6b391a8d2c4d45902a23a8b6585703d" : "URL", "03368e3c1eb4d2a9048775874301b19f" : "Select category", @@ -31,8 +33,8 @@ "8bc84316c4078bf66723fd019616d920" : "Descriptions", "83dad8107f9459efe2b4fabcf5b63108" : "Select Language", "76729937a5eb6b0fd88c42581161facd" : "Select Category ", - "14c21301c0faf9d5561b8a580be21a13" : "Select class", "0b8d92bc19b720bb1065649535463409" : "Translations", + "14c21301c0faf9d5561b8a580be21a13" : "Select class", "d41d8cd98f00b204e9800998ecf8427e" : "", "867343577fa1f33caa632a19543bd252" : "Keywords", "340c2ee497b85d5954b01c64de7f44f6" : "Select Person", @@ -57,6 +59,7 @@ "06933067aafd48425d67bcb01bba5cb6" : "Update", "8adedb6a6226807ba810215dd3b3c61b" : "Menu links to Page", "b5216c9b4e0ac0afd9c76eb1d12ad1b9" : "Select Section", + "2ad41a2ff4f0dac97d63aff331d5e6e7" : "Downloads first Attachment", "308f2757bfc9ce92fb00ff93fdffd279" : "Images / Attachments", "76eb64a1725ee953c664e15c9213b2fd" : "Extended Content", "1351017ac6423911223bc19a8cb7c653" : "Filename", @@ -159,8 +162,8 @@ "render" : "function (_self)\n{\n _this.cpanel = _self;\n}" }, "autoScroll" : true, - "fitToFrame" : true, "region" : "center", + "fitToFrame" : true, "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ @@ -197,9 +200,9 @@ "|actioncomplete" : "function (_self, action)\n{\n\n if (action.type == 'setdata') {\n\n _this.form.addForm(_this.form1);\n _this.form.addForm(_this.form2);\n _this.form.addForm(_this.form3);\n _this.form.addForm(_this.form4);\n \n _this.dialog.setStylesheets();\n \n _this.dialog.getLayout().getRegion('west').collapse();\n _this.panel.region.collapse();\n \n _this.trpanel.el.mask('Save first');\n _this.panel.el.mask('Save first');\n \n _this.loaded = false;\n _this.interestsCol.hide();\n \n //_this.form.findField('category_page_id').fieldEl.select('label',true).first().dom.innerHTML = 'Category';\n \n if ( _this.data.id) {\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.id, '_with_primary_image' : 1 }});\n } else {\n\n _this.loaded = true;\n var is_draft = typeof(_this.data.is_draft) != 'undefined' ? _this.data.is_draft : 1;\n this.findField('is_draft').setValue(is_draft);\n _this.page_type.setValue(_this.data.page_type_id);\n _this.page_type.el.dom.value = _this.data.page_type_id_display_name;\n \n if(_this.data.page_type_id_name == 'blog' && AppModules.indexOf(\"Crm\") !== -1){\n _this.interestsCol.show();\n }\n \n _this.form.showHide();\n \n /*\n var catlabel= _this.form.findField('category_page_id').fieldEl.select('label',true).first()\n catlabel.dom.innerHTML = 'Category'; \n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent Category';\n } \n */\n \n /*\n var catlabel= _this.form.findField('parent_id').fieldEl.select('label',true).first();\n catlabel.dom.innerHTML = 'Parent page';\n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent';\n }\n */\n \n }\n \n if(_this.data._is_copy){\n _this.form.is_copy();\n }\n \n return;\n }\n \n if (action.type == 'load') {\n \n //_this.data = action.result.data;\n \n var d = action.result.data;\n \n _this.dialog.el.unmask();\n _this.grid.getDataSource().load();\n \n _this.trform.reset();\n _this.trform1.reset();\n _this.trform2.reset();\n \n _this.trform.addForm(_this.trform1);\n _this.trform.addForm(_this.trform2);\n \n _this.form1.findField('body').originalValue = _this.form1.findField('body').getValue();\n _this.form2.findField('extended').originalValue = _this.form2.findField('extended').getValue();\n _this.form3.findField('extra_css').originalValue = _this.form3.findField('extra_css').getValue();\n _this.form4.findField('keywords').originalValue = _this.form4.findField('keywords').getValue();\n _this.form4.findField('descriptions').originalValue = _this.form4.findField('descriptions').getValue();\n \n /*\n var catlabel= _this.form.findField('category_page_id').fieldEl.select('label',true).first()\n catlabel.dom.innerHTML = 'Category'; \n \n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent Category';\n }\n */\n /*\n var catlabel= _this.form.findField('parent_id').fieldEl.select('label',true).first();\n catlabel.dom.innerHTML = 'Parent page'; \n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent';\n }\n */\n // better if this was not here... - not sure which project uses it?\n \n if(_this.data.page_type_id_name == 'blog' && AppModules.indexOf(\"Crm\") !== -1){\n _this.interestsCol.show();\n }\n \n if(typeof(d['interests']) != 'undefined'){\n _this.form.findField('interest').setValue(Roo.decode(d['interests']));\n }\n \n if(typeof(d['categories']) != 'undefined'){\n _this.form.findField('category').setValue(Roo.decode(d['categories']));\n }\n \n if(typeof(d['page_classes']) != 'undefined'){\n _this.form.findField('page_cls').setValue(Roo.decode(d['page_classes']));\n }\n \n _this.trpanel.el.unmask();\n _this.panel.el.unmask();\n \n // fix scrolling..\n _this.cpanel.el.dom.scrollTop = 0;\n \n // fix messed up scroll.\n _this.dialog.layout.el.dom.scrollTop = 0;\n \n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\n \n if(!_this.exit){\n this.load({ method: 'GET', params: { '_id' : action.result.data.id }});\n return;\n }\n \n _this.dialog.hide();\n \n\n if (_this.callback) {\n _this.callback.call(_this, action.result.data);\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered" : "function (_self)\n{\n _this.form = _self;\n}\n" }, + "$ url" : "baseURL + '/Roo/cms_page.php'", "| function is_copy" : "function() \n{ \n _this.form.setValues(_this.data);\n \n var d = _this.data;\n\n _this.dialog.el.unmask();\n _this.grid.getDataSource().load();\n \n _this.trform.reset();\n _this.trform1.reset();\n _this.trform2.reset();\n \n _this.form1.findField('body').originalValue = _this.form1.findField('body').getValue();\n _this.form2.findField('extended').originalValue = _this.form2.findField('extended').getValue();\n \n /*\n var catlabel= _this.form.findField('category_page_id').fieldEl.select('label',true).first()\n catlabel.dom.innerHTML = 'Category'; \n \n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent Category';\n }\n */\n /*\n var catlabel= _this.form.findField('parent_id').fieldEl.select('label',true).first();\n catlabel.dom.innerHTML = 'Parent page'; \n if(_this.data.page_type_id_name == 'category'){\n catlabel.dom.innerHTML = 'Parent';\n }\n */\n // better if this was not here... - not sure which project uses it?\n \n if(_this.data.page_type_id_name == 'blog' && AppModules.indexOf(\"Crm\") !== -1){\n _this.interestsCol.show();\n }\n \n if(typeof(d['interests']) != 'undefined'){\n _this.form.findField('interest').setValue(Roo.decode(d['interests']));\n }\n \n if(typeof(d['categories']) != 'undefined'){\n _this.form.findField('category').setValue(Roo.decode(d['categories']));\n }\n \n if(typeof(d['page_classes']) != 'undefined'){\n _this.form.findField('page_cls').setValue(Roo.decode(d['page_classes']));\n }\n \n _this.trpanel.el.unmask();\n _this.panel.el.unmask();\n \n // fix scrolling..\n _this.cpanel.el.dom.scrollTop = 0;\n \n // fix messed up scroll.\n _this.dialog.layout.el.dom.scrollTop = 0;\n return;\n}", "labelAlign" : "right", - "$ url" : "baseURL + '/Roo/cms_page.php'", "method" : "POST", "style" : "margin: 5px", "xtype" : "Form", @@ -230,8 +233,8 @@ }, { "hideLabels" : true, - "xtype" : "Row", "style" : "height:30px;overflow:hidden", + "xtype" : "Row", "labelWidth" : 0, "width" : 600, "$ xns" : "Roo.form", @@ -274,8 +277,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_enum.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -330,8 +333,8 @@ }, { "hideLabels" : true, - "xtype" : "Row", "style" : "height:30px;overflow:hidden", + "xtype" : "Row", "labelWidth" : 0, "width" : 540, "$ xns" : "Roo.form", @@ -406,8 +409,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_person'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -426,16 +429,16 @@ }, { "fieldLabel" : "Category", - "hiddenName" : "category", "xtype" : "ComboBoxArray", + "hiddenName" : "category", "width" : 400, "$ xns" : "Roo.form", "name" : "category_name", "items" : [ { + "alwaysQuery" : true, "listWidth" : 400, "Number pageSize" : 40, - "alwaysQuery" : true, "triggerAction" : "all", "fieldLabel" : "Category", "forceSelection" : true, @@ -465,8 +468,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -524,8 +527,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -590,9 +593,9 @@ "name" : "target_url" }, { + "$ tpl" : "'
{template_clean}
'\n", "alwaysQuery" : true, "listWidth" : 400, - "$ tpl" : "'
{template_clean}
'\n", "triggerAction" : "all", "fieldLabel" : "Layout", "forceSelection" : true, @@ -625,8 +628,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Cms_template'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -679,8 +682,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Cms_template_element'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -733,8 +736,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -753,8 +756,8 @@ }, { "fieldLabel" : "Page Class", - "xtype" : "ComboBoxArray", "hiddenName" : "page_cls", + "xtype" : "ComboBoxArray", "width" : 400, "$ xns" : "Roo.form", "name" : "page_cls_name", @@ -791,8 +794,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_enum.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -853,8 +856,8 @@ "render" : "function (_self)\n{\n _this.interests = _self;\n /*\n _self.combo.addicon.setStyle( {\n position : 'absolute',\n right: '9px',\n top : '2px',\n float : 'left'\n });\n */\n}" }, "fieldLabel" : "Interests", - "xtype" : "ComboBoxArray", "hiddenName" : "interest", + "xtype" : "ComboBoxArray", "width" : 300, "$ xns" : "Roo.form", "name" : "interest_name", @@ -891,8 +894,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Core_enum.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -958,8 +961,8 @@ "rendered" : "function (form)\n{\n _this.form1 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "POST", "xtype" : "Form", + "method" : "POST", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -976,8 +979,8 @@ "autosave" : "function (_self)\n{\n Roo.log('autosave');\n \n var id = _this.form.findField('id').getValue() * 1;\n /*\n if(!_self.editorcore.sourceEditMode){\n _self.syncValue();\n }else{\n _self.pushValue();\n }\n */\n new Pman.Request({\n url : baseURL + '/Roo/Events.php',\n method :'POST',\n params : {\n id : 0,\n action : 'AUTOSAVE',\n on_id : (id > 0) ? id : 0,\n on_table : 'cms_page',\n remarks : 'BODY',\n source: _self.getValue()\n },\n success : function() {\n _self.originalValue = _self.getValue();\n \n },\n failure : function() \n {\n //Roo.MessageBox.alert(\"Error\", \"autosave failed\");\n Roo.log('body autosave failed?!');\n }\n });\n \n}" }, "xtype" : "HtmlEditor", - "width" : 550, "$ xns" : "Roo.form", + "width" : 550, "String fieldLabel" : "Contents", "resizable" : "s", "$ autosave" : "function() {\n \n var body = _this.form1.findField('body');\n \n if(!body.wrap.isVisible(true) || body.getValue() == '' || !body.isDirty()){\n Roo.log('body not dirty');\n return;\n }\n \n Roo.log('body dirty, auto save!');\n \n body.fireEvent('autosave', body);\n \n \n}\n", @@ -996,9 +999,9 @@ "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n \n var id = _this.form.findField('id').getValue() * 1; \n if (!id) {\n Roo.MessageBox.alert(\"Error\", \"Save Document First before adding images\");\n return false;\n }\n}", "select" : "function (combo, record, index)\n{\n Roo.log(record);\n (function() { \n combo.setValue('');\n }).defer(100);\n \n var editor = _this.form.findField('body').editorcore;\n \n var curnode = editor.getSelectedNode();\n \n if (curnode && curnode.tagName == 'IMG') {\n curnode.src= String.format('{0}/Images/{1}/{2}#attachment-{1}',\n baseURL, record.data.id, record.data.filename\n );\n // note -forces an update... hopefully...\n editor.owner.fireEvent('editorevent', editor, false);\n } else {\n \n editor.insertAtCursor(\n String.format('',\n baseURL, record.data.id, record.data.filename\n )\n );\n\n }\n \n}" }, + "alwaysQuery" : true, "listWidth" : 400, "$ tpl" : "'
{filename}
'", - "alwaysQuery" : true, "triggerAction" : "all", "fieldLabel" : "Images", "forceSelection" : true, @@ -1030,8 +1033,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Images.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1086,8 +1089,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1148,8 +1151,8 @@ "rendered" : "function (form)\n{\n _this.form2 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "POST", "xtype" : "Form", + "method" : "POST", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -1219,8 +1222,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Images.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1275,8 +1278,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1311,8 +1314,8 @@ }, { "xtype" : "ToolbarContext", - "$ styles" : "typeof(uiConfig) != 'undefined' ? (uiConfig['Roo.form.HtmlEditor.ToolbarContext.styles'] || {}) : {}", "$ xns" : "Roo.form.HtmlEditor", + "$ styles" : "typeof(uiConfig) != 'undefined' ? (uiConfig['Roo.form.HtmlEditor.ToolbarContext.styles'] || {}) : {}", "* prop" : "toolbars[]" } ] @@ -1337,8 +1340,8 @@ "rendered" : "function (form)\n{\n _this.form3 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "xtype" : "Form", "method" : "POST", + "xtype" : "Form", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -1376,8 +1379,8 @@ "rendered" : "function (form)\n{\n _this.form4 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "POST", "xtype" : "Form", + "method" : "POST", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -1416,9 +1419,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "region" : "east", "fitToframe" : true, "background" : false, - "region" : "east", "title" : "Images / Attachments", "xtype" : "GridPanel", "fitContainer" : true, @@ -1448,8 +1451,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Images.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1503,8 +1506,8 @@ }, { "xtype" : "ColumnModel", - "width" : 200, "header" : "Filename", + "width" : 200, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -1512,8 +1515,8 @@ }, { "xtype" : "ColumnModel", - "width" : 50, "header" : "Order", + "width" : 50, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -1529,8 +1532,8 @@ "focus" : "function (_self)\n{\n if (this.value == 0) {\n this.el.dom.value = '';\n }\n}" }, "xtype" : "NumberField", - "$ xns" : "Roo.form", "decimalPrecision" : 0, + "$ xns" : "Roo.form", "* prop" : "field" } ] @@ -1539,8 +1542,8 @@ }, { "xtype" : "ColumnModel", - "width" : 100, "header" : "Title", + "width" : 100, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -1562,8 +1565,8 @@ }, { "xtype" : "ColumnModel", - "width" : 300, "header" : "URL", + "width" : 300, "$ renderer" : "function(v)\n{\n return String.format('{0}', (v) ? v : '');\n}", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -1623,8 +1626,8 @@ "render" : "function (_self)\n{\n _this.trpanel = _self;\n}" }, "autoScroll" : true, - "fitToFrame" : true, "region" : "center", + "fitToFrame" : true, "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ @@ -1695,8 +1698,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Cms_page.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1797,8 +1800,8 @@ "rendered" : "function (form)\n{\n _this.trform1 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "xtype" : "Form", "method" : "POST", + "xtype" : "Form", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -1834,9 +1837,9 @@ "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n \n var id = _this.form.findField('id').getValue() * 1; \n if (!id) {\n Roo.MessageBox.alert(\"Error\", \"Save press release first\");\n return false;\n }\n}", "select" : "function (combo, record, index)\n{\n Roo.log(record);\n (function() { \n combo.setValue('');\n }).defer(100);\n \n var editor = _this.trform.findField('body').editorcore;\n \n var curnode = editor.getSelectedNode();\n \n if (curnode && curnode.tagName == 'IMG') {\n curnode.src= String.format('{0}/Images/{1}/{2}#attachment-{1}',\n baseURL, record.data.id, record.data.filename\n );\n // note -forces an update... hopefully...\n editor.owner.fireEvent('editorevent', editor, false);\n } else {\n \n editor.insertAtCursor(\n String.format('',\n baseURL, record.data.id, record.data.filename\n )\n );\n\n }\n \n}" }, + "$ tpl" : "'
{filename}
'", "alwaysQuery" : true, "listWidth" : 400, - "$ tpl" : "'
{filename}
'", "triggerAction" : "all", "fieldLabel" : "Images", "forceSelection" : true, @@ -1867,8 +1870,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Images.php'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1923,8 +1926,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -1984,8 +1987,8 @@ "rendered" : "function (form)\n{\n _this.trform2 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "xtype" : "Form", "method" : "POST", + "xtype" : "Form", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", @@ -2033,8 +2036,8 @@ }, { "xtype" : "ToolbarContext", - "$ xns" : "Roo.form.HtmlEditor", "$ styles" : "typeof(uiConfig) != 'undefined' ? (uiConfig['Roo.form.HtmlEditor.ToolbarContext.styles'] || {}) : {}", + "$ xns" : "Roo.form.HtmlEditor", "* prop" : "toolbars[]" } ] @@ -2059,8 +2062,8 @@ "rendered" : "function (form)\n{\n _this.trform3 = form;\n}" }, "$ url" : "baseURL + '/Roo/cms_page.php'", - "method" : "POST", "xtype" : "Form", + "method" : "POST", "labelWidth" : 80, "String labelAlign" : "top", "$ xns" : "Roo.form", diff --git a/Pman.Dialog.CmsBlog.js b/Pman.Dialog.CmsBlog.js index 04afafcf..d9798a7f 100644 --- a/Pman.Dialog.CmsBlog.js +++ b/Pman.Dialog.CmsBlog.js @@ -17,8 +17,10 @@ Pman.Dialog.CmsBlog = { 'a517747c3d12f99244ae598910d979c5' :"Author", '31fde7b05ac8952dacf4af8a704074ec' :"Preview", '779e2624ddf330fb05b51ae59faf212d' :"Select Status Type", + '5834d26e96dbae06029496e5b111dca2' :"Has Extended content?", '6a5b847af3d97df722040debdbccfbed' :"Page Type", '30d1a216420426fcbd43ca70acd4aa48' :"Select interests", + 'f03ab16cd58372c77ba45a3d9a5a1cb9' :"Draft", 'cc6892c9705afcfa61c53698756ba51b' :"Page Class", 'e6b391a8d2c4d45902a23a8b6585703d' :"URL", '03368e3c1eb4d2a9048775874301b19f' :"Select category", @@ -32,8 +34,8 @@ Pman.Dialog.CmsBlog = { '8bc84316c4078bf66723fd019616d920' :"Descriptions", '83dad8107f9459efe2b4fabcf5b63108' :"Select Language", '76729937a5eb6b0fd88c42581161facd' :"Select Category ", - '14c21301c0faf9d5561b8a580be21a13' :"Select class", '0b8d92bc19b720bb1065649535463409' :"Translations", + '14c21301c0faf9d5561b8a580be21a13' :"Select class", 'd41d8cd98f00b204e9800998ecf8427e' :"", '867343577fa1f33caa632a19543bd252' :"Keywords", '340c2ee497b85d5954b01c64de7f44f6' :"Select Person", @@ -58,6 +60,7 @@ Pman.Dialog.CmsBlog = { '06933067aafd48425d67bcb01bba5cb6' :"Update", '8adedb6a6226807ba810215dd3b3c61b' :"Menu links to Page", 'b5216c9b4e0ac0afd9c76eb1d12ad1b9' :"Select Section", + '2ad41a2ff4f0dac97d63aff331d5e6e7' :"Downloads first Attachment", '308f2757bfc9ce92fb00ff93fdffd279' :"Images / Attachments", '76eb64a1725ee953c664e15c9213b2fd' :"Extended Content", '1351017ac6423911223bc19a8cb7c653' :"Filename", @@ -70,6 +73,58 @@ Pman.Dialog.CmsBlog = { '30269022e9d8f51beaabb52e5d0de2b7' :"Parent", 'fb3f11443065d5f4d8303ad913db9680' :"Replaces (ignore)" }, + _named_strings : { + 'seq_id_fieldLabel' : 'b28a711cf7e94ec793ef926633997529' /* Seq */ , + 'to_replace_id_fieldLabel' : 'fb3f11443065d5f4d8303ad913db9680' /* Replaces (ignore) */ , + 'template_id_template_clean_fieldLabel' : 'ebd9bec4d70abc789d439c1f136b0538' /* Layout */ , + 'page_cls_name_fieldLabel' : 'cc6892c9705afcfa61c53698756ba51b' /* Page Class */ , + 'language_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'template_id_template_clean_qtip' : '76729937a5eb6b0fd88c42581161facd' /* Select Category */ , + 'author_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'page_type_id_display_name_fieldLabel' : '6a5b847af3d97df722040debdbccfbed' /* Page Type */ , + 'has_extended_boxLabel' : '5834d26e96dbae06029496e5b111dca2' /* Has Extended content? */ , + 'language_name_emptyText' : '83dad8107f9459efe2b4fabcf5b63108' /* Select Language */ , + 'author_id_name_qtip' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ , + 'menu_page_id_page_link_qtip' : '76729937a5eb6b0fd88c42581161facd' /* Select Category */ , + 'published_fieldLabel' : '69dd756ae9c23191a5bb9b61f0857432' /* Date to Publish */ , + 'author_id_name_fieldLabel' : 'a517747c3d12f99244ae598910d979c5' /* Author */ , + 'element_id_name_qtip' : '76729937a5eb6b0fd88c42581161facd' /* Select Category */ , + 'parent_id_title_qtip' : '76729937a5eb6b0fd88c42581161facd' /* Select Category */ , + 'element_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'author_id_name_emptyText' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ , + 'is_attachment_boxLabel' : '2ad41a2ff4f0dac97d63aff331d5e6e7' /* Downloads first Attachment */ , + 'extra_css_fieldLabel' : '39f64cc9436cacfbceda3b7bdeb8e24c' /* Styles (CSS) */ , + 'template_id_template_clean_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'parent_id_title_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'is_draft_fieldLabel' : '287234a1ff35a314b5b6bc4e5828e745' /* Attributes */ , + 'add_link_emptyText' : '580b21aac58f1b73cece26e272cdfbee' /* Add Link */ , + 'keywords_fieldLabel' : '867343577fa1f33caa632a19543bd252' /* Keywords */ , + 'descriptions_fieldLabel' : '8bc84316c4078bf66723fd019616d920' /* Descriptions */ , + 'add_link_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'menu_page_id_page_link_emptyText' : '99e7707748ae048e17c5810fad119e0b' /* Select Page */ , + 'element_id_name_fieldLabel' : 'f3912172e6bf57f8979782f4a2342233' /* Appears in Block */ , + 'is_element_value' : 'cfcd208495d565ef66e7dff9f98764da' /* 0 */ , + 'target_url_fieldLabel' : 'e64df1d7c22b9638f084ce8a4aff3ff3' /* Target URL */ , + 'interest_name_fieldLabel' : 'c70952e4ab3806c049737cd7d2b8896b' /* Interests */ , + 'language_name_qtip' : '83dad8107f9459efe2b4fabcf5b63108' /* Select Language */ , + 'page_type_id_display_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'language_name_fieldLabel' : '83dad8107f9459efe2b4fabcf5b63108' /* Select Language */ , + 'element_id_name_emptyText' : 'b5216c9b4e0ac0afd9c76eb1d12ad1b9' /* Select Section */ , + 'menu_page_id_page_link_fieldLabel' : '8adedb6a6226807ba810215dd3b3c61b' /* Menu links to Page */ , + 'page_type_id_display_name_emptyText' : '779e2624ddf330fb05b51ae59faf212d' /* Select Status Type */ , + 'template_id_template_clean_emptyText' : '31bb2f6e9b8fb11cbb7fb63c6025223f' /* Select Template */ , + 'menu_page_id_page_link_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ , + 'extended_fieldLabel' : '57e195426892c5515935f21d97228814' /* Extended Contents */ , + 'add_link_qtip' : '76729937a5eb6b0fd88c42581161facd' /* Select Category */ , + 'category_name_fieldLabel' : '3adbdb3ac060038aa0e6e6c138ef9873' /* Category */ , + 'page_type_id_display_name_qtip' : '20bec77364d863100a1f9325873a8504' /* Select Page Type */ , + 'body_fieldLabel' : 'c1df1da7a1ce305a3b60af9d5733ac1d' /* Contents */ , + 'parent_id_title_emptyText' : '95cb4f45ab7ff3984f25ab8668499020' /* Select Parent */ , + 'title_fieldLabel' : 'b78a3223503896721cca1303f776159b' /* Title */ , + 'is_draft_boxLabel' : 'f03ab16cd58372c77ba45a3d9a5a1cb9' /* Draft */ , + 'page_link_fieldLabel' : 'd52f80f80467bb575253a5a39ca016a7' /* Page link / Name / Order */ , + 'parent_id_title_fieldLabel' : '30269022e9d8f51beaabb52e5d0de2b7' /* Parent */ + }, dialog : false, callback: false, @@ -1133,7 +1188,7 @@ Pman.Dialog.CmsBlog = { items : [ { xtype : 'Checkbox', - boxLabel : 'Draft', + boxLabel : _this._strings['f03ab16cd58372c77ba45a3d9a5a1cb9'] /* Draft */, fieldLabel : _this._strings['287234a1ff35a314b5b6bc4e5828e745'] /* Attributes */, name : 'is_draft', width : 100, @@ -1142,7 +1197,7 @@ Pman.Dialog.CmsBlog = { }, { xtype : 'Checkbox', - boxLabel : 'Has Extended content?', + boxLabel : _this._strings['5834d26e96dbae06029496e5b111dca2'] /* Has Extended content? */, inputValue : 1, name : 'has_extended', width : 180, @@ -1164,7 +1219,7 @@ Pman.Dialog.CmsBlog = { }, { xtype : 'Checkbox', - boxLabel : 'Downloads first Attachment', + boxLabel : _this._strings['2ad41a2ff4f0dac97d63aff331d5e6e7'] /* Downloads first Attachment */, inputValue : 1, name : 'is_attachment', width : 180,