Commit e297a0d8 authored by Jean-Paul Smets's avatar Jean-Paul Smets

WebSection_newWebPage now redirects to editable mode

better translation support

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13200 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3d8ad08d
...@@ -88,7 +88,8 @@ context.setDefaultAggregateValue(web_page)\n ...@@ -88,7 +88,8 @@ context.setDefaultAggregateValue(web_page)\n
\n \n
# Return the new page in the section context\n # Return the new page in the section context\n
return web_page.Base_redirect(\'view\',\n return web_page.Base_redirect(\'view\',\n
keep_items = dict(portal_status_message = translateString("New default Web Page for section ${web_section}.",\n keep_items = dict(editable_mode=1,\n
portal_status_message = translateString("New default Web Page for section ${web_section}.",\n
mapping = dict(web_section = title))))\n mapping = dict(web_section = title))))\n
</string> </value> </string> </value>
</item> </item>
......
...@@ -92,8 +92,9 @@ context.setDefaultAggregateValue(web_page)\n ...@@ -92,8 +92,9 @@ context.setDefaultAggregateValue(web_page)\n
\n \n
# Return the new page in the section context\n # Return the new page in the section context\n
return web_page.Base_redirect(\'view\',\n return web_page.Base_redirect(\'view\',\n
keep_items = dict(portal_status_message = translateString("New Web Page of section ${web_section}.",\n keep_items = dict(editable_mode=1,\n
mapping = dict(web_section = title))))\n portal_status_message=translateString("New Web Page of section ${web_section}.",\n
mapping = dict(web_section=title))))\n
</string> </value> </string> </value>
</item> </item>
<item> <item>
......
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
Theme\n Theme\n
</div>\n </div>\n
</div>\n </div>\n
<input style="float:right" type="submit" name="WebSite_contributeLink:method" value="Contribute"/>\n <input style="float:right" type="submit" name="WebSite_linkContent:method" value="Contribute"/>\n
<div class="clear"></div>\n <div class="clear"></div>\n
</div>\n </div>\n
\n \n
...@@ -145,7 +145,7 @@ ...@@ -145,7 +145,7 @@
</span>\n </span>\n
</li>\n </li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'External Library File\', user)">\n <li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'External Library File\', user)">\n
<a href="Base_createContent?portal_type=External Library File" value="" i18n:translate="" i18n:domain="ui">Library File</a>\n <a href="ERP?portal_type=External Library File" value="" i18n:translate="" i18n:domain="ui">Library File</a>\n
</li>\n </li>\n
</ul>\n </ul>\n
</ul>\n </ul>\n
...@@ -199,10 +199,10 @@ ...@@ -199,10 +199,10 @@
<li class="listheader" value="" i18n:translate="" i18n:domain="ui">Contacts:</li>\n <li class="listheader" value="" i18n:translate="" i18n:domain="ui">Contacts:</li>\n
<ul>\n <ul>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Organisation\', user)">\n <li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Organisation\', user)">\n
<a href="Base_createContent?portal_type=Organisation" value="" i18n:translate="" i18n:domain="ui">Organisation</a>\n <a href="ERP5Site_newContent?portal_type=Organisation" value="" i18n:translate="" i18n:domain="ui">Organisation</a>\n
</li>\n </li>\n
<li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Person\', user)">\n <li tal:condition="python:here.ERP5Site_isNewContentAllowed(\'Person\', user)">\n
<a href="Base_createContent?portal_type=Person" value="" i18n:translate="" i18n:domain="ui">Person</a>\n <a href="ERP5Site_newContent?portal_type=Person" value="" i18n:translate="" i18n:domain="ui">Person</a>\n
</li>\n </li>\n
</ul>\n </ul>\n
</ul>\n </ul>\n
...@@ -212,14 +212,27 @@ ...@@ -212,14 +212,27 @@
</div>\n </div>\n
</div>\n </div>\n
\n \n
</tal:block> </tal:block>\n
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebSite_viewContributeRenderer</string> </value> <value> <string>WebSite_viewContributeRenderer</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -116,10 +116,22 @@ ...@@ -116,10 +116,22 @@
]]></string> </value> ]]></string> </value>
</item> </item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>0</int> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>WebSite_viewDashboardRenderer</string> </value> <value> <string>WebSite_viewDashboardRenderer</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -48,7 +48,6 @@ ...@@ -48,7 +48,6 @@
<key> <string>_text</string> </key> <key> <string>_text</string> </key>
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
\n
<div id="home_search">\n <div id="home_search">\n
<tal:block metal:use-macro="here/WebSite_viewSearchRenderer/macros/main"/>\n <tal:block metal:use-macro="here/WebSite_viewSearchRenderer/macros/main"/>\n
</div>\n </div>\n
...@@ -61,7 +60,6 @@ ...@@ -61,7 +60,6 @@
<div class="box left" tal:define="global TASK_LEN python: 20">\n <div class="box left" tal:define="global TASK_LEN python: 20">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/act"/>\n <tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/act"/>\n
</div>\n </div>\n
\n
<div class="box left" tal:define="NEWS_LEN python: 20">\n <div class="box left" tal:define="NEWS_LEN python: 20">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/learn"/>\n <tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/learn"/>\n
</div>\n </div>\n
...@@ -69,6 +67,7 @@ ...@@ -69,6 +67,7 @@
<div class="box left">\n <div class="box left">\n
<tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/evaluate"/>\n <tal:block metal:use-macro="here/WebSite_viewDashboardRenderer/macros/evaluate"/>\n
</div>\n </div>\n
\n
</div> </div>
]]></string> </value> ]]></string> </value>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment