Commit 914868f6 authored by Jérome Perrin's avatar Jérome Perrin

ods_style: new request parameter 'merge_report_section_list'

If set to true, will only display the listbox header from the first
report section. This way, all report sections look like one big report
section, but we can still easily distribute report sections computations
using erp5_deferred_style.
parent 01304a81
......@@ -71,6 +71,7 @@ with portal.Localizer.translationContext(localizer_language):\n
selection_name = request.get(\'prefixed_selection_name\')\n
data = context.render_report_section.pt_render(\n
extra_context=dict(form=form,\n
first=report_section_idx == 0,\n
report_section=report_section,\n
render_prefix=render_prefix))\n
\n
......
......@@ -61,9 +61,11 @@
max_section_depth python: max([x.getSectionDepth() for x in listboxline_list]) + int(is_report_tree_mode);\n
listbox_line_structure python: here.Listbox_getReportTreeStructure(listbox_line_list=listboxline_list[1:], is_report_tree_mode=is_report_tree_mode, is_domain_tree_mode=is_domain_tree_mode, max_section_depth=max_section_depth);\n
listboxline python:listboxline_list[0];\n
first first | nothing;\n
global merge_report_section_list python: request.get(\'merge_report_section_list\', False);\n
" i18n:domain="ui">\n
\n
<tal:block tal:condition="listboxline/isTitleLine">\n
<tal:block tal:condition="python: listboxline.isTitleLine() and ( first or not merge_report_section_list )">\n
\n
<tal:block tal:condition="display_header | nothing">\n
<tal:block tal:repeat="column_item listboxline/getColumnItemList">\n
......
......@@ -97,6 +97,7 @@
<tal:block tal:repeat="report_item report_item_list">\n
<tal:block metal:define-macro="make_report_item_table"\n
tal:define="here python:report_item.getObject(portal_object);\n
first repeat/report_item/start;\n
render_prefix python: \'x%s\' % (repeat[\'report_item\'].index, );\n
dummy python:report_item.pushReport(portal_object,\n
render_prefix=render_prefix)">\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