Pflichtenhefte: Maske fürs Erstellen von Angeboten/Aufträgen
[kivitendo-erp.git] / templates / webpages / requirement_spec_order / _assignment_form.html
index cee29d0..f32e715 100644 (file)
@@ -1,9 +1,27 @@
 [%- USE HTML -%][%- USE LxERP -%][%- USE L -%][%- USE P -%]
-<div>
- [% LxERP.t8("Assign the following article to all sections") %]:
- [% 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') %]
- [% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %]
-</div>
+[% SET style="width: 400px" %]
+
+<table>
+[% IF for_new %]
+ <tr>
+  <td>[% LxERP.t8("Record type to create") %]:</td>
+  <td>[% L.select_tag('quotation', [ [ 1, LxERP.t8('Sales quotation') ], [ 0, LxERP.t8('Sales Order') ] ], style=style, no_id=1) %]</td>
+ </tr>
+
+ <tr>
+  <td>[% LxERP.t8("Customer") %]:</td>
+  <td>[% L.select_tag('customer_id', SELF.all_customers, default=SELF.requirement_spec.customer_id, title_key='name', style=style, no_id=1) %]</td>
+ </tr>
+[% END %]
+
+ <tr>
+  <td>[% LxERP.t8("Assign the following article to all sections") %]:</td>
+  <td>
+   [% 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', style=style) %]
+   [% L.button_tag('kivi.requirement_spec.assign_order_part_id_to_all()', LxERP.t8('Assign article')) %]
+  </td>
+ </tr>
+</table>
 
 <form id="quotations_and_orders_article_assignment_form">
  <table style="width: 100%">
@@ -23,7 +41,7 @@
     <td>[% HTML.escape(section.fb_number) %]</td>
     <td>[% HTML.escape(section.title) %]</td>
     <td>[% HTML.escape(P.truncate(section.description)) %]</td>
-    <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>
+    <td>[% L.select_tag('sections[].order_part_id', SELF.all_parts, default=section.order_part_id, with_empty=!for_new, title_sub=\make_part_title, style=style, no_id=1) %]</td>
    </tr>
    [% END %]
   </tbody>