Pflichtenheftversionen anlegen und auflisten
[kivitendo-erp.git] / templates / webpages / requirement_spec_version / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %][%- USE P -%]
2
3 <table>
4  <thead>
5   <tr class="listheading">
6    <th>[%- LxERP.t8("Version number") %]</th>
7    <th>[%- LxERP.t8("Description") %]</th>
8    <th>[%- LxERP.t8("Internal comment") %]</th>
9    <th>[%- LxERP.t8("Last modification") %]</th>
10   </tr>
11  </thead>
12
13  <tbody>
14   <tr class="listrow">
15    <td>
16     [%- IF SELF.requirement_spec.version_id %]
17      [%- LxERP.t8("Working copy identical to version number #1", SELF.requirement_spec.version.version_number) %]
18     [%- ELSE %]
19      [%- LxERP.t8("Working copy without version") %]
20     [%- END -%]
21    </td>
22    <td>[%- LxERP.t8("Working copy; no description yet") %]</td>
23    <td>&nbsp;</td>
24    <td>[% SELF.requirement_spec.mtime.to_kivitendo(precision='minute') %]</td>
25   </tr>
26
27   [%- FOREACH versioned = SELF.versioned_copies %]
28    <tr class="listrow versioned_copy_context_menu">
29     <td>[% HTML.escape(versioned.version.version_number) %]</td>
30     <td>[% HTML.escape(P.truncate(versioned.description)) %]</td>
31     <td>[% HTML.escape(P.truncate(versioned.comment)) %]</td>
32     <td>[% versioned.mtime.to_kivitendo(precision='minute') %]</td>
33    </tr>
34   [%- END %]
35  </tbody>
36 </table>