T8 Filter für Templates und Anwendungsbeispiel _payments
[kivitendo-erp.git] / templates / webpages / oe / search_master.html
index 752ea37..cc0a2cb 100644 (file)
@@ -1,5 +1,6 @@
 [%- USE HTML %]
 [%- SET vclabel = vc == 'customer' ? '<translate>Customer</translate>' : '<translate>Vendor</translate>' %]
+[%- SET vcnumberlabel = vc == 'customer' ? '<translate>Customer Number</translate>' : '<translate>Vendor Number</translate>' %]
 <body>
 
 <form method="post" action="oe.pl">
@@ -59,7 +60,7 @@
                  label_sub     = 'employee_labels',
                  limit         = vclimit,
                  show_empty    = 1,
-                 allow_textbox = 1,
+                 allow_textbox = 0,
                  default       = ' ',
             -%]
      </td>
@@ -75,7 +76,7 @@
                  label_sub     = 'salesman_labels',
                  limit         = vclimit,
                  show_empty    = 1,
-                 allow_textbox = 1,
+                 allow_textbox = 0,
             -%]
      </td>
     </tr>
@@ -87,7 +88,7 @@
      <th align="right"><translate>Project Number</translate></th>
      <td colspan="3">
             [%- INCLUDE 'generic/multibox.html'
-                 name          = 'project_id',
+                 name          =  vclimit < ALL_PROJECTS.size ? 'projectnumber' : 'project_id',
                  style         = "width: 250px",
                  DATA          =  ALL_PROJECTS,
                  id_key        = 'id',
          <label for="l_salesman"><translate>Salesman</translate></label>
         </td>
        </tr>
+       <tr>
+        <td colspan=4 align=left><b>[% HTML.escape(vclabel) %]</td>
+       </tr>
+       <tr>
+        <td>
+         <input name="l_vcnumber" id="l_vcnumber" class="checkbox" type="checkbox" value="Y">
+         <label for="l_vcnumber">[% HTML.escape(vcnumberlabel) %]</label>
+        </td>
+        <td>
+         <input name="l_country" id="l_country" class="checkbox" type="checkbox" value="Y">
+         <label for="l_country"><translate>Country</translate></label>
+        </td>
+        <td>
+         <input name="l_ustid"  id="l_ustid" class="checkbox" type="checkbox" value="Y">
+         <label for="l_ustid"><translate>USt-IdNr.</translate></label>
+        </td>
+       </tr>
 [%- IF type == 'sales_order' %]
        <tr><td colspan="3"><hr></td></tr>
 [%- END %]