Commit 5341c5e6 authored by Rafael Monnerat's avatar Rafael Monnerat

Fixes for setReportRoot in Planning Box

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@13570 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8995314c
......@@ -70,9 +70,9 @@
<key> <string>_body</string> </key>
<value> <string encoding="cdata"><![CDATA[
# Return first listbox in a form that is enabled and not hidden\n
# Return first planningbox in a form that is enabled and not hidden\n
# Christophe Dumez <christophe@nexedi.com>\n
# This script should be used to detect a listbox without having to name it "listbox"\n
# This script should be used to detect a listbox planningbox having to name it "planningbox"\n
\n
form=context\n
\n
......@@ -80,7 +80,7 @@ if form.meta_type != \'ERP5 Form\':\n
return None\n
\n
# we start with \'bottom\' because most of the time\n
# the listbox is there.\n
# the planningbox is there.\n
for group in (\'bottom\', \'center\', \'left\', \'right\'):\n
for field in form.get_fields_in_group(group):\n
if field.meta_type == \'PlanningBox\' and not(field[\'hidden\']) and field[\'enabled\']:\n
......
......@@ -90,8 +90,8 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
<tr><td><h3><span tal:replace="structure python:struct.basic.field.get_value(\'title\')"/>\n
</h3></td>\n
<td>\n
<select name="report_root_url" onChange="submitAction(this.form,\'/portal_selections/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/portal_selections/setReportRoot\')">\n
<select name="report_root_url" onChange="submitAction(this.form,\'/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/setReportRoot\')">\n
<tal:block tal:condition="python:basic.selection is None"\n
tal:define="global selection_report_path python:basic.report_root_list[0][0]"/>\n
<tal:block tal:condition="python:basic.selection is not None"\n
......@@ -147,8 +147,8 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
</td>\n
<b tal:replace="nothing"><!-- report path selection --></b>\n
<td>\n
<select name="report_root_url" onChange="submitAction(this.form,\'/portal_selections/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/portal_selections/setReportRoot\')">\n
<select name="report_root_url" onChange="submitAction(this.form,\'/setReportRoot\')"\n
tal:attributes="onChange string:submitAction(this.form,\'${address}/setReportRoot\')">\n
<tal:block tal:condition="python:basic.selection is None"\n
tal:define="global selection_report_path python:basic.report_root_list[0][0]"/>\n
<tal:block tal:condition="python:basic.selection is not None"\n
......@@ -451,13 +451,13 @@ Beware this only generates the HTML code, no CSS generation is done in this scri
tal:attributes="href python:block.info[area].link;\n
class python:\'planning_box_\' + info_area">\n
</a>\n
<!--\n
\n
<a tal:condition="python:block.info[area].info == \'__\'"\n
tal:attributes="href python:block.info[area].link;\n
class python:\'planning_box_\' + info_area">\n
<img tal:attributes="src python:basic.here.getUrl() + \'/images/question.png\'"\n
height="15" width="15">\n
</a> -->\n
</a>\n
</tal:block>\n
<tal:block tal:condition="python:info_area==\'center\'" >\n
<div tal:attributes="class python:\'planning_box_\' + info_area">\n
......
350
\ No newline at end of file
357
\ No newline at end of file
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