Pflichtenhefte: Zuweisung Artikel zu Abschnitten implementiert
[kivitendo-erp.git] / templates / webpages / requirement_spec_order / _assignment_form.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 <div>
3  [% LxERP.t8("Assign the following article to all sections") %]:
4  [% L.select_tag('quotations_and_orders_dummy', SELF.all_parts, default=INSTANCE_CONF.get_requirement_spec_section_order_part_id, title_sub=\make_part_title, id='quoations_and_orders_order_id') %]
5  [% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %]
6 </div>
7
8 <form id="quotations_and_orders_article_assignment_form">
9  <table style="width: 100%">
10   <thead>
11    <tr class="listheading">
12     <th>[% LxERP.t8("Number") %]</th>
13     <th>[% LxERP.t8("Title") %]</th>
14     <th>[% LxERP.t8("Description") %]</th>
15     <th>[% LxERP.t8("Article") %]</th>
16    </tr>
17   </thead>
18
19   <tbody>
20    [% FOREACH section = SELF.requirement_spec.sections_sorted %]
21    <tr class="listrow">
22     [% L.hidden_tag("sections[+].id", section.id, no_id=1) %]
23     <td>[% HTML.escape(section.fb_number) %]</td>
24     <td>[% HTML.escape(section.title) %]</td>
25     <td>[% HTML.escape(P.truncate(section.description)) %]</td>
26     <td>[% L.select_tag('sections[].order_part_id', SELF.all_parts, default=section.order_part_id, with_empty=1, title_sub=\make_part_title, no_id=1) %]</td>
27    </tr>
28    [% END %]
29   </tbody>
30  </table>
31 </form>