Commit 178df6cb authored by Jean-Paul Smets's avatar Jean-Paul Smets

Updated forms. New naming for admin toolbox field (prevent conflicts)

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12411 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2ee6eebe
...@@ -440,6 +440,10 @@ ...@@ -440,6 +440,10 @@
<list/> <list/>
</value> </value>
</item> </item>
<item>
<key> <string>page_template</string> </key>
<value> <string></string> </value>
</item>
<item> <item>
<key> <string>portal_types</string> </key> <key> <string>portal_types</string> </key>
<value> <value>
...@@ -512,28 +516,7 @@ ...@@ -512,28 +516,7 @@
<item> <item>
<key> <string>url_columns</string> </key> <key> <string>url_columns</string> </key>
<value> <value>
<list> <list/>
<tuple>
<string>id</string>
<string>WebSite_getListboxUrl</string>
</tuple>
<tuple>
<string>title</string>
<string>WebSite_getListboxUrl</string>
</tuple>
<tuple>
<string>portal_type</string>
<string>WebSite_getListboxUrl</string>
</tuple>
<tuple>
<string>creation_date</string>
<string>WebSite_getListboxUrl</string>
</tuple>
<tuple>
<string>modification_date</string>
<string>WebSite_getListboxUrl</string>
</tuple>
</list>
</value> </value>
</item> </item>
</dictionary> </dictionary>
......
...@@ -124,8 +124,8 @@ current_section = context.getWebSectionValue()\n ...@@ -124,8 +124,8 @@ current_section = context.getWebSectionValue()\n
if not kw.has_key(\'validation_state\'):\n if not kw.has_key(\'validation_state\'):\n
kw[\'validation_state\'] = [\'draft\', \'submitted\', \'shared\',\n kw[\'validation_state\'] = [\'draft\', \'submitted\', \'shared\',\n
\'released\', \'published\', \'restricted\']\n \'released\', \'published\', \'restricted\']\n
if not kw.has_key(\'order_by\'):\n if not kw.has_key(\'sort_on\'):\n
kw[\'order_by\'] = [(\'int_index\', \'descending\')]\n kw[\'sort_on\'] = [(\'int_index\', \'descending\')]\n
if not kw.has_key(\'group_by\'):\n if not kw.has_key(\'group_by\'):\n
kw[\'group_by\'] = (\'reference\',)\n kw[\'group_by\'] = (\'reference\',)\n
\n \n
......
...@@ -85,12 +85,12 @@ form_data = context.REQUEST.form\n ...@@ -85,12 +85,12 @@ form_data = context.REQUEST.form\n
\n \n
# Define a list of field name to take into account in the cloning process\n # Define a list of field name to take into account in the cloning process\n
ACCEPTABLE_FORM_ID_LIST = [ \\\n ACCEPTABLE_FORM_ID_LIST = [ \\\n
\'reference\'\n \'clone_reference\'\n
, \'language\'\n , \'clone_language\'\n
, \'version\'\n , \'clone_version\'\n
, \'revision\'\n , \'clone_revision\'\n
, \'title\'\n , \'clone_title\'\n
, \'short_title\'\n , \'clone_short_title\'\n
]\n ]\n
\n \n
# First make sure that no document already exists with the\n # First make sure that no document already exists with the\n
...@@ -98,13 +98,13 @@ ACCEPTABLE_FORM_ID_LIST = [ \\\n ...@@ -98,13 +98,13 @@ ACCEPTABLE_FORM_ID_LIST = [ \\\n
if clone:\n if clone:\n
portal_type = context.getPortalType()\n portal_type = context.getPortalType()\n
else:\n else:\n
portal_type = form_data[\'new_portal_type\']\n portal_type = form_data[\'clone_portal_type\']\n
\n \n
# prepare query params\n # prepare query params\n
kw = {\'portal_type\' : portal_type}\n kw = {\'portal_type\' : portal_type}\n
if form_data.get(\'reference\'): kw[\'reference\'] = form_data[\'reference\']\n if form_data.get(\'clone_reference\'): kw[\'reference\'] = form_data[\'clone_reference\']\n
if form_data.get(\'version\'): kw[\'version\'] = form_data[\'version\']\n if form_data.get(\'clone_version\'): kw[\'version\'] = form_data[\'clone_version\']\n
if form_data.get(\'language\'): kw[\'language\'] = form_data[\'language\']\n if form_data.get(\'clone_language\'): kw[\'language\'] = form_data[\'clone_language\']\n
\n \n
# Count documents of same reference and prepare kw\n # Count documents of same reference and prepare kw\n
count = int(context.portal_catalog.countResults(**kw)[0][0])\n count = int(context.portal_catalog.countResults(**kw)[0][0])\n
......
...@@ -113,32 +113,32 @@ ...@@ -113,32 +113,32 @@
\n \n
<div class="field">\n <div class="field">\n
<label>Title</label>\n <label>Title</label>\n
<div class="input"><input class="input" size="15" type="text" name="title"\n <div class="input"><input class="input" size="15" type="text" name="clone_title"\n
tal:attributes="value here/getTitle | nothing"/></div>\n tal:attributes="value here/getTitle | nothing"/></div>\n
</div>\n </div>\n
\n \n
<div class="field">\n <div class="field">\n
<label>Reference</label>\n <label>Reference</label>\n
<div class="input"><input class="input" size="15" type="text" name="reference"\n <div class="input"><input class="input" size="15" type="text" name="clone_reference"\n
tal:attributes="value here/getReference | nothing"/></div>\n tal:attributes="value here/getReference | nothing"/></div>\n
</div>\n </div>\n
\n \n
<div class="field">\n <div class="field">\n
<label>Version</label>\n <label>Version</label>\n
<div class="input"><input class="input" size="5" type="text" name="version"\n <div class="input"><input class="input" size="5" type="text" name="clone_version"\n
tal:attributes="value here/getVersion | nothing"/></div>\n tal:attributes="value here/getVersion | nothing"/></div>\n
</div>\n </div>\n
\n \n
<div class="field">\n <div class="field">\n
<label>Language</label>\n <label>Language</label>\n
<div class="input"><input class="input" size="5" type="text" name="language"\n <div class="input"><input class="input" size="5" type="text" name="clone_language"\n
tal:attributes="value here/getLanguage | nothing"/></div>\n tal:attributes="value here/getLanguage | nothing"/></div>\n
</div>\n </div>\n
\n \n
<div class="field hiddenLabel">\n <div class="field hiddenLabel">\n
<label>Type</label>\n <label>Type</label>\n
<div class="input">\n <div class="input">\n
<select class="input" name="new_portal_type" size="1" onchange="setCreationMode(this)">\n <select class="input" name="clone_portal_type" size="1" onchange="setCreationMode(this)">\n
<option value="None" selected>&mdash; Same as Current &mdash;</option>\n <option value="None" selected>&mdash; Same as Current &mdash;</option>\n
<tal:block tal:repeat="portal_type python: here.getPortalWebDocumentTypeList()">\n <tal:block tal:repeat="portal_type python: here.getPortalWebDocumentTypeList()">\n
<option tal:content="portal_type"\n <option tal:content="portal_type"\n
......
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