</body> entfernt
[kivitendo-erp.git] / templates / webpages / ct / search.html
index 7469774..606de26 100644 (file)
@@ -1,5 +1,7 @@
 [%- USE T8 %]
-[% USE HTML %]<body onload="fokus()">
+[%- USE L %]
+[%- USE HTML %]
+<body onload="fokus()">
 
  <form method="post" action="ct.pl" name="Form">
 
@@ -47,9 +49,7 @@
    <tr>
     <th align="right" nowrap>[% IF IS_CUSTOMER %][% 'Customer type' | $T8 %][% ELSE %][% 'Vendor type' | $T8 %][% END %]</th>
     <td>
-     <select name="business_id"><option value=""></option>
-      [% FOREACH bt = ALL_BUSINESS_TYPES %]<option value="[% HTML.escape(bt.id) %]">[% HTML.escape(bt.description) %]</option>[% END %]
-     </select>
+     [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key = 'description', with_empty = 1) %]
     </td>
    </tr>
    [% END %]
   <input type="submit" class="submit" name="action" value="[% 'Continue' | $T8 %]">
  </form>
 
-</body>
-</html>