Commit aa0d6b7f authored by Sebastien Robin's avatar Sebastien Robin

project detailed view report : use line breaks to respect descriptions layout

parent 345b357b
...@@ -101,8 +101,10 @@ ...@@ -101,8 +101,10 @@
<text:span text:style-name=\'T1\' i18n:translate="Resources" i18n:domain="erp5_ui">Resources</text:span>: <tal:block tal:replace="python:\', \'.join(line_item.getSourceTradeTitleList([]))">JP Smets, B. Faye</tal:block></text:p>\n <text:span text:style-name=\'T1\' i18n:translate="Resources" i18n:domain="erp5_ui">Resources</text:span>: <tal:block tal:replace="python:\', \'.join(line_item.getSourceTradeTitleList([]))">JP Smets, B. Faye</tal:block></text:p>\n
<text:p text:style-name=\'Project_20_Box\' tal:condition="line_item/getOutcomeDescription">\n <text:p text:style-name=\'Project_20_Box\' tal:condition="line_item/getOutcomeDescription">\n
<text:span text:style-name=\'T1\' i18n:translate="Result" i18n:domain="erp5_ui">Result</text:span>: <tal:block tal:replace="line_item/getOutcomeDescription">description of result</tal:block>\n <text:span text:style-name=\'T1\' i18n:translate="Result" i18n:domain="erp5_ui">Result</text:span>: <tal:block tal:replace="line_item/getOutcomeDescription">description of result</tal:block>\n
</text:p>\n </text:p>\n
<text:p text:style-name=\'Text_20_body\' tal:content="line_item/getDescription">Description of project line.</text:p>\n <tal:block tal:define="description line_item/getDescription">\n
<text:p text:style-name=\'Text_20_body\'><tal:block tal:repeat="partial_description python: description.split(\'\\n\')"><tal:block tal:content="partial_description"/><tal:block tal:condition="python: not(repeat[\'partial_description\'].end)"><text:line-break/></tal:block></tal:block></text:p>\n
</tal:block>\n
<tal:block tal:define="global current_line python:line_item"/>\n <tal:block tal:define="global current_line python:line_item"/>\n
<tal:block metal:use-macro="here/SaleOrder_viewDetailedReportMacro/macros/line"/>\n <tal:block metal:use-macro="here/SaleOrder_viewDetailedReportMacro/macros/line"/>\n
</tal:block>\n </tal:block>\n
...@@ -129,7 +131,7 @@ ...@@ -129,7 +131,7 @@
</tal:block>\n </tal:block>\n
<text:span text:style-name=\'T1\' i18n:translate="End" i18n:domain="erp5_ui">End</text:span>: <tal:block tal:replace="line_item/getStopDate">2006-01-01</tal:block>\n <text:span text:style-name=\'T1\' i18n:translate="End" i18n:domain="erp5_ui">End</text:span>: <tal:block tal:replace="line_item/getStopDate">2006-01-01</tal:block>\n
</text:p>\n </text:p>\n
<text:p text:style-name=\'Text_20_body\' tal:content="line_item/getDescription">Description of project line.</text:p>\n <text:p text:style-name=\'Text_20_body\'><tal:block tal:repeat="partial_description python: description.split(\'\\n\')"><tal:block tal:content="partial_description"/><tal:block tal:condition="python: not(repeat[\'partial_description\'].end)"><text:line-break/></tal:block></tal:block></text:p>\n
<tal:block tal:define="global depth python:depth - 1"/>\n <tal:block tal:define="global depth python:depth - 1"/>\n
</tal:block>\n </tal:block>\n
\n \n
...@@ -138,8 +140,7 @@ ...@@ -138,8 +140,7 @@
</tal:block>\n </tal:block>\n
</office:text>\n </office:text>\n
</office:body>\n </office:body>\n
</office:document-content>\n </office:document-content>
]]></unicode> </value> ]]></unicode> </value>
</item> </item>
......
817 818
\ No newline at end of file \ 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