Pflichtenhefte auf Versionen zurücksetzen können
[kivitendo-erp.git] / templates / webpages / requirement_spec_version / list.html
1 [% USE HTML %][% USE L %][% USE LxERP %][%- USE P -%]
2
3 <table id="versioned_copies_list">
4  <thead>
5   <tr class="listheading">
6    <th><div class="thingy" style="width: 10px; height: 100%; background-color: red; position: relative; left: -10px;"></div>[%- 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 versioned-copy-context-menu">
15    [%- IF SELF.requirement_spec.version_id %]
16     [% L.hidden_tag('versioned_copy_id', SELF.requirement_spec.version_id, no_id=1) %]
17     <td>[%- LxERP.t8("Working copy identical to version number #1", SELF.requirement_spec.version.version_number) %]</td>
18    [%- ELSE %]
19     <td>[%- LxERP.t8("Working copy without version") %]</td>
20    [%- END -%]
21    <td>[%- LxERP.t8("Working copy; no description yet") %]</td>
22    <td>&nbsp;</td>
23    <td>[% SELF.requirement_spec.mtime.to_kivitendo(precision='minute') %]</td>
24   </tr>
25
26   [%- FOREACH versioned = SELF.versioned_copies %]
27    <tr class="listrow versioned-copy-context-menu">
28     [% L.hidden_tag('versioned_copy_id', versioned.id, no_id=1) %]
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>