Pflichtenhefte: zusätzliche Artikel zuweisen und bearbeiten können
[kivitendo-erp.git] / templates / webpages / requirement_spec_part / show.html
1 [%- USE LxERP -%][%- USE L -%][%- USE P -%][%- USE HTML -%]
2 [% SET parts = SELF.requirement_spec.parts_sorted %]
3
4 <div id="additional_parts_list_container" class="additional-parts-context-menu"[% IF initially_hidden %] style="display: none;"[% END %]>
5
6  <h2>[% LxERP.t8("Additional articles") %]</h2>
7
8  <div id="additional_parts_list_empty"[% IF parts.size %] style="display: none;"[% END %]>
9   [% LxERP.t8("No articles have been added yet.") %]
10  </div>
11
12  <table id="additional_parts_list"[% IF !parts.size %] style="display: none;"[% END %]>
13   <thead>
14    <tr class="listheading">
15     <th>[%- LxERP.t8("Part Number") %]</th>
16     <th>[%- LxERP.t8("Description") %]</th>
17     <th>[%- LxERP.t8("Qty") %]</th>
18    </tr>
19   </thead>
20
21   <tbody>
22    [% FOREACH part = parts %]
23     <tr class="listrow">
24      <td>[% HTML.escape(part.part.partnumber) %]</td>
25      <td>[% HTML.escape(part.description) %]</td>
26      <td valign="right">[% HTML.escape(part.qty_as_number) %] [% HTML.escape(part.unit.name) %]</td>
27     </tr>
28    [% END %]
29   </tbody>
30  </table>
31 </div>