--- /dev/null
+[%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
+[% SET style = "width: 400px" %]
+[% SET order = SELF.rs_order.order %]
+
+<div class="quotations-and-orders-update-context-menu">
+
+ <h2>
+ [% IF order.quotation %]
+ [% LxERP.t8("Update sales quotation #1", order.quonumber) %]
+ [% ELSE %]
+ [% LxERP.t8("Update sales order #1", order.ordnumber) %]
+ [% END %]
+ </h2>
+
+ <form id="quotations_and_orders_form">
+ [% L.hidden_tag("rs_order_id", SELF.rs_order.id, no_id=1) %]
+
+ <table style="width: 100%">
+ <thead>
+ <tr class="listheading">
+ <th>[% LxERP.t8("Part Number") %]</th>
+ <th>[% LxERP.t8("Description") %]</th>
+ <th align="right">[% LxERP.t8("Qty") %]</th>
+ <th align="right">[% LxERP.t8("Sellprice") %]</th>
+ <th>[% LxERP.t8("Update with section") %]</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ [% FOREACH item = orderitems %]
+ <tr class="listrow">
+ [% L.hidden_tag("orderitems[+].id", item.item.id, no_id=1) %]
+ <td>[% HTML.escape(item.item.part.partnumber) %]</td>
+ <td>[% HTML.escape(item.item.description) %]</td>
+ <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
+ <td align="right">[% LxERP.format_amount(item.item.qty * 1) %] [% HTML.escape(item.item.unit) %]</td>
+ <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>
+ </tr>
+ [% END %]
+ </tbody>
+ </table>
+
+ <p>
+ [% LxERP.t8("Sections that are not assigned to any of the items above will be added as new positions.") %]
+ </p>
+ </form>
+</div>