Merge branch 'f-use-proper-selects-and-pickers'
[kivitendo-erp.git] / templates / webpages / bp / search.html
index d8f6800..6baf327 100644 (file)
@@ -2,7 +2,6 @@
 [%- USE T8 %]
 [%- USE LxERP %]
 [%- USE HTML %]
-<body>
 <form method=post action=bp.pl>
 
 <h1>[% 'Print' | $T8 %] [% label.$type.title %]</h1>[% L.hidden_tag('title', LxERP.t8('Print') _ ' ' _ label.$type.title) %]
 <table>
   <tr>
     <th align=right>[% 'Customer' | $T8 %]</th>
-    <td colspan=3>
-  [%- IF vc == 'customer' ? all_customer.size : all_vendor.size %]
-      [%- INCLUDE 'generic/multibox.html'
-           name          = vc,
-           DATA          = vc == 'customer' ? all_customer : all_vendor,
-           id_sub        = 'vc_keys',
-           label_sub     = 'vc_keys',
-           select        = vc_select,
-           limit         = vclimit,
-           show_empty    = 1,
-           allow_textbox = 1,
-      -%]
-  [%- ELSE %]
-    [% L.input_tag(vc, '', size=35) %]
-  [%- END %]
-</td>
+    <td colspan=3>[% L.input_tag(vc, '', size=35) %]</td>
   </tr>
 [% IF show_accounts %]
   <tr>
     <th align=right>[% 'Account' | $T8 %]</th>
-    <td colspan=3>[% L.select_tag('account', L.options_for_select(accounts, value_title_sub=\account_sub)) %]</td>
+    <td colspan=3>[% L.select_tag('account', accounts, value_title_sub=\account_sub) %]</td>
   </tr>
 [% END %]
 [%- IF label.$type.invnumber %]
     <td colspan=3>[% L.input_tag('quonumber', '', size=20) %]</td>
   </tr>
 [%- END %]
+[%- IF label.$type.donumber %]
+  <tr>
+    <th align=right nowrap>[% 'Delivery Order Number' | $T8 %]</th>
+    <td colspan=3>[% L.input_tag('donumber', '', size=20) %]</td>
+  </tr>
+[%- END %]
 [%- IF label.$type.chknumber %]
   <tr>
     <th align=right nowrap>[% 'Reference' | $T8 %]</th>
@@ -76,7 +66,3 @@
 [% L.submit_tag('action', LxERP.t8('Continue')) %]
 
 </form>
-
-</body>
-
-</html>