kivitendo/templates/webpages/do/search.html @ b8114b70
575f3aaa | Hans P. Schlaepfer | [% USE T8 %]
|
||
[% USE L %]
|
||||
[% USE HTML %]
|
||||
[% USE LxERP %]
|
||||
[% USE P %]
|
||||
3aa5cee2 | Sven Schöling | <h1>[% title %]</h1>
|
||
fe619b7f | Hans P. Schlaepfer | [% IF vc == 'customer' %]
|
||
[% SET is_customer = '1' %]
|
||||
[% ELSE %]
|
||||
[% SET is_customer = '0' %]
|
||||
[% END %]
|
||||
d707f7ac | Moritz Bunkus | |||
fe619b7f | Hans P. Schlaepfer | [% SET vctypelabel = vc == 'customer' ? LxERP.t8('Customer type') : LxERP.t8('Vendor type') %]
|
||
d93709bd | Bernd Bleßmann | |||
fe619b7f | Hans P. Schlaepfer | <form method="post" action="do.pl" name="Form" id="form">
|
||
d707f7ac | Moritz Bunkus | |||
fe619b7f | Hans P. Schlaepfer | <div class="wrapper">
|
||
d707f7ac | Moritz Bunkus | |||
fe619b7f | Hans P. Schlaepfer | <table class="tbl-horizontal">
|
||
<caption>[% 'Customer' | $T8 %]</caption>
|
||||
<colgroup> <col class="wi-mediumsmall"><col class="wi-wide"> </colgroup>
|
||||
<tbody>
|
||||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</th>
|
||
<td>[% P.input_tag(vc, "", class="fixed_width initial_focus wi-normal") %]</td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | [% IF ALL_BUSINESS_TYPES.size %]
|
||
b98b8e3f | Sven Schöling | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% vctypelabel %]</th>
|
||
<td> [% L.select_tag('business_id', ALL_BUSINESS_TYPES, title_key='description', with_empty=1, class='wi-normal') %] </td>
|
||||
b98b8e3f | Sven Schöling | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | [% END %]
|
||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Contact Person' | $T8 %]</th>
|
||
<td>[% L.input_tag("cp_name", '', class="fixed_width wi-normal") %]</td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
<tr>
|
||||
fe619b7f | Hans P. Schlaepfer | <th class="caption" colspan="2">[% 'Handling' | $T8 %]</th>
|
||
d707f7ac | Moritz Bunkus | </tr>
|
||
524f8d01 | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Employee' | $T8 %]</th>
|
||
<td>[% L.select_tag('employee_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
|
||||
524f8d01 | Moritz Bunkus | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | [% IF is_customer %]
|
||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Salesman' | $T8 %]</th>
|
||
<td>[% L.select_tag('salesman_id', ALL_EMPLOYEES, title_key='safe_name', with_empty=1, class='fixed_width wi-normal') %]</td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | [% END %] [% IF ALL_DEPARTMENTS.size %]
|
||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Department' | $T8 %]</th>
|
||
<td>[% L.select_tag('department_id', ALL_DEPARTMENTS, default=department_id, title_key='description', with_empty=1, class="fixed_width wi-normal") %]</td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | [% END %]
|
||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Delivery Order Date' | $T8 %] [% #'From' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('transdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('transdateto') %]</span></td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
<tr>
|
||||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Reqdate' | $T8 %] [% #'From' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('reqdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('reqdateto') %]</span></td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
<tr>
|
||||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Insert Date' | $T8 %] [% #'From' | $T8 %]</th>
|
||
<td><span class="wi-date">[% L.date_tag('insertdatefrom') %] [% 'Bis' | $T8 %] [% L.date_tag('insertdateto') %]</span></td>
|
||||
d707f7ac | Moritz Bunkus | </tr>
|
||
fe619b7f | Hans P. Schlaepfer | </tbody>
|
||
</table>
|
||||
d707f7ac | Moritz Bunkus | |||
fe619b7f | Hans P. Schlaepfer | <table class="tbl-horizontal">
|
||
<caption>[% 'Order & Numbers' | $T8 %]</caption>
|
||||
<colgroup> <col class="wi-small"><col class="wi-lightwide"> </colgroup>
|
||||
<tbody>
|
||||
2e4e2ba9 | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Delivery Order Number' | $T8 %]</th>
|
||
<td> <input type="text" name="donumber" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
2e4e2ba9 | Moritz Bunkus | </tr>
|
||
d93709bd | Bernd Bleßmann | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Order Number' | $T8 %]</th>
|
||
<td> <input type="text" name="ordnumber" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
d93709bd | Bernd Bleßmann | </tr>
|
||
30645d2c | Bernd Bleßmann | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Customer Order Number' | $T8 %]</th>
|
||
<td> <input type="text" name="cusordnumber" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
30645d2c | Bernd Bleßmann | </tr>
|
||
d707f7ac | Moritz Bunkus | <tr>
|
||
fe619b7f | Hans P. Schlaepfer | <th>[% 'Project Number' | $T8 %]</th>
|
||
<td>
|
||||
<select name="project_id" class="fixed_width wi-mediumsmall">
|
||||
<option></option>
|
||||
[% FOREACH row = ALL_PROJECTS %]
|
||||
<option value="[% HTML.escape(row.id) %]">[% HTML.escape(row.projectnumber) %]</option>
|
||||
7d026c7c | Niclas Zimmermann | [% END %]
|
||
fe619b7f | Hans P. Schlaepfer | </select>
|
||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Transaction description' | $T8 %]</th>
|
||||
<td> <input type="text" name="transaction_description" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th class="caption" colspan="2">[% 'Article data' | $T8 %]</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Part Description' | $T8 %]</th>
|
||||
<td> <input type="text" name="parts_description" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Part Number' | $T8 %]</th>
|
||||
<td> <input type="text" name="parts_partnumber" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>[% 'Serial Number' | $T8 %]</th>
|
||||
<td> <input type="text" name="serialnumber" class="fixed_width wi-mediumsmall">
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div><!-- ./wrapper -->
|
||||
<div class="form-addition control-panel wrapper">
|
||||
<h3>[% 'Include in Report' | $T8 %]</h3>
|
||||
<div class="list col wi-small">
|
||||
<h4>[% 'Status' | $T8 %]</h4>
|
||||
<div>
|
||||
<input type="checkbox" name="open" value="1" id="open" checked>
|
||||
<label for="open">[% 'Open' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input type="checkbox" name="closed" value="1" id="closed">
|
||||
<label for="closed">[% 'Closed' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="notdelivered" id="notdelivered" type="checkbox" value="1" checked>
|
||||
<label for="notdelivered">[% 'Not delivered' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="delivered" id="delivered" type="checkbox" value="1" checked>
|
||||
<label for="delivered">[% 'Delivered' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% 'IDs & Numbers' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_id" id="l_id" type="checkbox" value="Y">
|
||||
<label for="l_id">[% 'ID' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_donumber" id="l_donumber" type="checkbox" value="Y" checked>
|
||||
<label for="l_donumber">[% 'Delivery Order Number' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_ordnumber" id="l_ordnumber" type="checkbox" value="Y" checked>
|
||||
<label for="l_ordnumber">[% 'Order Number' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_cusordnumber" id="l_cusordnumber" type="checkbox" value="Y" checked>
|
||||
<label for="l_cusordnumber">[% 'Customer Order Number' | $T8 %]</label>
|
||||
</div>
|
||||
[% IF is_customer %]
|
||||
<div>
|
||||
<input name="l_customernumber" id="l_customernumber" type="checkbox" value="Y">
|
||||
<label for="l_customernumber">[% 'Customer Number' | $T8 %]</label>
|
||||
</div>
|
||||
[% END %]
|
||||
<div>
|
||||
<input name="l_globalprojectnumber" id="l_globalprojectnumber" type="checkbox" value="Y">
|
||||
<label for="l_globalprojectnumber">[% 'Project Number' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% 'Dates' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_transdate" id="l_transdate" type="checkbox" value="Y" checked>
|
||||
<label for="l_transdate">[% 'Delivery Order Date' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_reqdate" id="l_reqdate" type="checkbox" value="Y" checked>
|
||||
<label for="l_reqdate">[% 'Reqdate' | $T8 %]</label>
|
||||
</div>
|
||||
[% IF is_customer %]
|
||||
<div>
|
||||
<input name="l_insertdate" id="l_insertdate" type="checkbox" value="Y">
|
||||
<label for="l_insertdate">[% 'Insert Date' | $T8 %]</label>
|
||||
</div>
|
||||
[% END %]
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% 'Order data' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_name" id="l_name" type="checkbox" value="Y" checked>
|
||||
<label for="l_name">[% IF is_customer %][% 'Customer' | $T8 %][% ELSE %][% 'Vendor' | $T8 %][% END %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_transaction_description" id="l_transaction_description" type="checkbox" value="Y" [% IF (instance_conf.get_require_transaction_description_ps) %] checked[% END %]>
|
||||
<label for="l_transaction_description">[% 'Transaction description' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list col">
|
||||
<h4>[% 'Handling' | $T8 %]</h4>
|
||||
<div>
|
||||
<input name="l_employee" id="l_employee" type="checkbox" value="Y" checked>
|
||||
<label for="l_employee">[% 'Employee' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_salesman" id="l_salesman" type="checkbox" value="Y">
|
||||
<label for="l_salesman">[% 'Salesman' | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_department" id="l_department" type="checkbox" value="Y">
|
||||
<label for="l_department">[% "Department" | $T8 %]</label>
|
||||
</div>
|
||||
<div>
|
||||
<input name="l_shipvia" id="l_shipvia" type="checkbox" value="Y">
|
||||
<label for="l_shipvia">[% 'Ship via' | $T8 %]</label>
|
||||
</div>
|
||||
</div>
|
||||
</div><!-- /.form-addition /.wrapper -->
|
||||
<input type="hidden" name="action" value="orders">
|
||||
<input type="hidden" name="vc" value="[% HTML.escape(vc) %]">
|
||||
<input type="hidden" name="type" value="[% HTML.escape(type) %]">
|
||||
</form>
|