]> wagnertech.de Git - mfinanz.git/blob - templates/design40_webpages/requirement_spec_version/list.html
date error in mapping
[mfinanz.git] / templates / design40_webpages / requirement_spec_version / list.html
1 [% USE HTML %]
2 [% USE L %]
3 [% USE LxERP %]
4 [% USE P %]
5
6 <table id="versioned_copies_list">
7  <thead>
8   <tr>
9    <th><div class="thingy" style="width: 10px; height: 100%; background-color: red; position: relative; left: -10px;"></div>[% LxERP.t8("Version number") %]</th>
10    <th>[% LxERP.t8("Description") %]</th>
11    <th>[% LxERP.t8("Internal comment") %]</th>
12    <th>[% LxERP.t8("Last modification") %]</th>
13   </tr>
14  </thead>
15
16  <tbody>
17   <tr class="listrow versioned-copy-context-menu">
18    [% IF SELF.requirement_spec.version %]
19     [% L.hidden_tag('versioned_copy_id', SELF.requirement_spec.version.requirement_spec_id, no_id=1) %]
20     <td>[% LxERP.t8("Working copy identical to version number #1", SELF.requirement_spec.version.version_number) %]</td>
21    [% ELSE %]
22     <td>[% LxERP.t8("Working copy without version") %]</td>
23    [% END %]
24    <td>[% LxERP.t8("Working copy; no description yet") %]</td>
25    <td>&nbsp;</td>
26    <td>[% SELF.requirement_spec.mtime.to_kivitendo(precision='minute') %]</td>
27   </tr>
28
29   [% FOREACH versioned_copy = SELF.requirement_spec.versioned_copies_sorted %]
30    [% SET version = versioned_copy.version %]
31    <tr class="listrow versioned-copy-context-menu">
32     [% L.hidden_tag('versioned_copy_id', versioned_copy.id, no_id=1) %]
33     <td>[% HTML.escape(version.version_number) %]</td>
34     <td>[% HTML.escape(P.truncate(version.description)) %]</td>
35     <td>[% HTML.escape(P.truncate(version.comment)) %]</td>
36     <td>[% version.itime.to_kivitendo(precision='minute') %]</td>
37    </tr>
38   [% END %]
39  </tbody>
40 </table>