Commit 38902505 authored by Jérome Perrin's avatar Jérome Perrin

Show comments in the requirement detailed report

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23122 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a8324a1c
......@@ -108,13 +108,13 @@ AAA=</string> </value>
</text:sequence-decls>\n
<!-- Init state variables as globals -->\n
<tal:block tal:define="global current_requirement python:here;\n
global depth python:request.get(\'depth\', 1);\n
global depth python: request.get(\'depth\', 1);\n
global reference_list python:[here.getReference(\'R\')]">\n
<tal:block metal:define-macro="line"\n
tal:define="requirement_base python:\'-\'.join(reference_list)">\n
<text:h text:outline-level=\'1\' text:style-name=\'Heading_20_1\' tal:content="python:\'%s %s\' % (current_requirement.getReference(requirement_base), current_requirement.getTitle())"\n
tal:attributes="text:outline-level python:\'%s\' % depth;\n
\t\t\t\ttext:style-name python:\'Heading_20_%s\' % depth"><tal:trans i18n:domain="erp5_ui" i18n:translate="Project Line" /></text:h>\n
text:style-name python:\'Heading_20_%s\' % depth"><tal:trans i18n:domain="erp5_ui" i18n:translate="Project Line">Project Line</tal:trans></text:h>\n
<text:p text:style-name=\'Text_20_body\' tal:content="current_requirement/getDescription"\n
tal:condition="current_requirement/getDescription">Description of project line.</text:p>\n
<tal:block tal:define="requirement_list python:current_requirement.contentValues(portal_type=\'Requirement\', sort_on=((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\')">\n
......@@ -134,13 +134,13 @@ AAA=</string> </value>
<table:table-header-rows>\n
<table:table-row>\n
<table:table-cell table:style-name=\'RequirementList.A1\' office:value-type=\'string\'>\n
\t\t\t\t<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Reference" /></text:p>\n
<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Reference">Reference</tal:trans></text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name=\'RequirementList.A1\' office:value-type=\'string\'>\n
\t\t\t\t<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Title" /></text:p>\n
<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Title">Title</tal:trans></text:p>\n
</table:table-cell>\n
<table:table-cell table:style-name=\'RequirementList.C1\' office:value-type=\'string\'>\n
\t\t\t\t<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Description" /></text:p>\n
<text:p text:style-name=\'Table_20_Heading\'><tal:trans i18n:domain="erp5_ui" i18n:translate="Description">Description</tal:trans></text:p>\n
</table:table-cell>\n
</table:table-row>\n
</table:table-header-rows>\n
......@@ -155,6 +155,9 @@ AAA=</string> </value>
</table:table-cell>\n
<table:table-cell table:style-name=\'RequirementList.C2\' office:value-type=\'string\'>\n
<text:p text:style-name=\'Table_20_Contents\' tal:content="requirement/getDescription">Description here</text:p>\n
<text:p text:style-name=\'Comment\'\n
tal:condition="python: request.get(\'show_comment\') and requirement.getComment()"\n
tal:content="requirement/getComment">Comment here</text:p>\n
</table:table-cell>\n
</table:table-row>\n
</tal:block>\n
......
......@@ -71,6 +71,7 @@
<value>
<list>
<string>your_depth</string>
<string>your_show_comment</string>
</list>
</value>
</item>
......
......@@ -196,7 +196,7 @@
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
<value> <string>Depth used for heading styles in the generated report</string> </value>
</item>
<item>
<key> <string>display_maxwidth</string> </key>
......
<?xml version="1.0"?>
<ZopeData>
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<global name="CheckBoxField" module="Products.Formulator.StandardFields"/>
<tuple/>
</tuple>
</pickle>
<pickle>
<dictionary>
<item>
<key> <string>_owner</string> </key>
<value>
<none/>
</value>
</item>
<item>
<key> <string>id</string> </key>
<value> <string>your_show_comment</string> </value>
</item>
<item>
<key> <string>message_values</string> </key>
<value>
<dictionary>
<item>
<key> <string>external_validator_failed</string> </key>
<value> <string>The input failed the external validator.</string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>overrides</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>tales</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
</item>
</dictionary>
</value>
</item>
<item>
<key> <string>values</string> </key>
<value>
<dictionary>
<item>
<key> <string>alternate_name</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>css_class</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>default</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>description</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>editable</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>enabled</string> </key>
<value> <int>1</int> </value>
</item>
<item>
<key> <string>external_validator</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>extra</string> </key>
<value> <string></string> </value>
</item>
<item>
<key> <string>hidden</string> </key>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string>Show Comments</string> </value>
</item>
</dictionary>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
569
\ No newline at end of file
570
\ 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