<th>[%- LxERP.t8("Detail view") %]</th>
<th>[%- LxERP.t8("Paste template") %]</th>
<th>[%- LxERP.t8("Title") %]</th>
+ <th>[%- LxERP.t8("Type") %]</th>
<th>[%- LxERP.t8("Last modification") %]</th>
</tr>
</td>
<td><a href="#" onclick="kivi.requirement_spec.paste_selected_template([% template.id %]);">[%- LxERP.t8("Paste template") %]</a></td>
<td>[%- HTML.escape(template.title) %]</td>
+ <td>[%- HTML.escape(template.type.description) %]</td>
<td>[% template.mtime ? template.mtime.to_kivitendo(precision='minute') : template.itime.to_kivitendo(precision='minute') %]</td>
</tr>
[% SET front = template.text_blocks_sorted(output_position=0) %]
[% SET sections = template.sections_sorted %]
[% SET back = template.text_blocks_sorted(output_position=1) %]
+ [% SET parts = template.parts_sorted %]
<td colspan="4">
[%- LxERP.t8("What this template contains") %]:<br>
<ul>
[%- END %]
[% PROCESS text_blocks blocks=back title=LxERP.t8("#1 text block(s) back", back.size) %]
+
+ [%- IF parts.size %]
+ <li>[%- LxERP.t8("#1 additional part(s)", parts.size) %]:
+ <ol>
+ [%- FOREACH part = parts %]
+ <li>[%- HTML.escape(part.part.description) %]: [%- HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</li>
+ [%- END %]
+ </ol>
+ </li>
+ [%- END %]
</ul>
</td>
</tr>