Pflichtenheft: nach benutzerdefinierten Variablen suchen können
[kivitendo-erp.git] / templates / webpages / requirement_spec / _filter.html
1 [%- USE HTML %][%- USE L %][%- USE LxERP %]
2
3 <div class="filter_toggle">
4  <a href="#" onClick="$('.filter_toggle').toggle(); $('#filter_customer_name_substr_ilike').focus();">[% LxERP.t8("Show Filter") %]</a>
5 </div>
6
7 <div class="filter_toggle" style="display:none">
8  <a href="#" onClick="javascript:$('.filter_toggle').toggle()">[% LxERP.t8("Hide Filter") %]</a>
9
10  <form method="post" action="controller.pl">
11   [%- L.hidden_tag("is_template", is_template) %]
12
13   <p>
14    <table>
15     <tr>
16      <th align="right">[% LxERP.t8("Title") %]</th>
17      <td>[% L.input_tag('filter.title:substr::ilike', filter.title_substr__ilike, class="rs_input_field") %]</td>
18     </tr>
19
20 [%- UNLESS is_template %]
21     <tr>
22      <th align="right">[% LxERP.t8("Customer") %]</th>
23      <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, class="rs_input_field") %]</td>
24     </tr>
25
26     <tr>
27      <th align="right">[% LxERP.t8("Customer Number") %]</th>
28      <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, class="rs_input_field") %]</td>
29     </tr>
30
31     <tr>
32      <th align="right">[% LxERP.t8("Requirement Spec Type") %]</th>
33      <td>[% L.select_tag('filter.type_id', SELF.types, default=filter.type_id, title_key="description", with_empty=1, class="rs_input_field") %]</td>
34     </tr>
35
36     <tr>
37      <th align="right">[% LxERP.t8("Requirement Spec Status") %]</th>
38      <td>[% L.select_tag('filter.status_id[]', SELF.statuses, default=filter.status_id_, title_key="description", multiple=1, class="rs_input_field") %][%# NOTE: the trailing '_' is NOT a mistake -- look at SL::Controller::Helper::Filtered for the explanation! %]</td>
39     </tr>
40
41     <tr>
42      <th align="right">[% LxERP.t8("Project Number") %]</th>
43      <td>[% L.input_tag('filter.project.projectnumber:substr::ilike', filter.project.projectnumber_substr__ilike, class="rs_input_field") %]</td>
44     </tr>
45     <tr>
46      <th align="right">[% LxERP.t8("Project Description") %]</th>
47      <td>[% L.input_tag('filter.project.description:substr::ilike', filter.project.description_substr__ilike, class="rs_input_field") %]</td>
48     </tr>
49
50     [% FOREACH cvar_cfg = SELF.cvar_configs %]
51      [%- IF cvar_cfg.searchable %]
52       <tr>
53        <th align="right">[% HTML.escape(cvar_cfg.description) %]</th>
54        <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
55       </tr>
56      [% END %]
57     [% END %]
58 [%- END %]
59    </table>
60   </p>
61
62   [% L.hidden_tag("action", "RequirementSpec/list") %]
63
64   <p>[% L.submit_tag("dummy", LxERP.t8("Continue")) %]</p>
65  </form>
66 </div>