Pflichtenheftabschnitte/-funktionsblöcke: HTML nutzen
[kivitendo-erp.git] / templates / webpages / requirement_spec_order / update.html
1 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
2 [% SET style = "width: 400px" %]
3 [% SET order = SELF.rs_order.order %]
4
5 <div id="quotations_and_orders_update" class="quotations-and-orders-update-context-menu">
6
7  <h2>
8   [% IF order.quotation %]
9    [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
10   [% ELSE %]
11    [% LxERP.t8("Update sales order #1", order.ordnumber) %]
12   [% END %]
13  </h2>
14
15  <form id="quotations_and_orders_form">
16   [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
17
18   <table style="width: 100%">
19    <thead>
20     <tr class="listheading">
21      <th>[% LxERP.t8("Part Number") %]</th>
22      <th>[% LxERP.t8("Description") %]</th>
23      <th align="right">[% LxERP.t8("Qty") %]</th>
24      <th align="right">[% LxERP.t8("Sellprice") %]</th>
25      <th>[% LxERP.t8("Update with section") %]</th>
26     </tr>
27    </thead>
28
29    <tbody>
30     [% FOREACH item = orderitems %]
31     <tr class="listrow">
32      [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
33      <td>[% HTML.escape(item.item.part.partnumber) %]</td>
34      <td>[% HTML.escape(item.item.description_as_stripped_html) %]</td>
35      <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
36      <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
37      <td>[% L.select_tag('orderitems[].section_id', sections, default=item.section.id, title_sub=\make_section_title, style=style, no_id=1, with_empty=1, empty_title=LxERP.t8('Do not modify this position')) %]</td>
38     </tr>
39     [% END %]
40    </tbody>
41   </table>
42
43   <p>
44    [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
45   </p>
46
47   <p>
48    [% L.button_tag("kivi.requirement_spec.standard_quotation_order_ajax_call('do_update')", LxERP.t8('Update')) %]
49   </p>
50  </form>
51 </div>