Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / templates / webpages / project / _filter.html
1 [%- USE T8 %]
2 [%- USE HTML %]
3 [%- USE L %]
4 [%- USE LxERP %]
5
6 [% L.hidden_tag("_include_cvars_from_form", 1) %]
7
8 <table id="filter_table">
9  <tr>
10   <th align="right">[% 'Number' | $T8 %]</th>
11   <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, size=60) %]</td>
12  </tr>
13
14  <tr>
15   <th align="right">[% 'Description' | $T8 %]</th>
16   <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size=60, class='initial_focus') %]</td>
17  </tr>
18
19  <tr>
20   <th align="right">[% 'Customer' | $T8 %]</th>
21   <td>[% L.input_tag('filter.customer.name:substr::ilike', filter.customer.name_substr__ilike, size=60) %]</td>
22  </tr>
23
24  <tr>
25   <th align="right">[% 'Project Type' | $T8 %]</th>
26   <td>[% L.select_tag('filter.project_type_id', SELF.project_types, default=filter.project_type_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
27  </tr>
28
29  <tr>
30   <th align="right">[% 'Project Status' | $T8 %]</th>
31   <td>[% L.select_tag('filter.project_status_id', SELF.project_statuses, default=filter.project_status_id, title_key='description', with_empty=1, style="width: 200px") %]</td>
32  </tr>
33
34  [% FOREACH cvar_cfg = SELF.cvar_configs %]
35   [%- IF cvar_cfg.searchable %]
36    <tr>
37     <th align="right">[% HTML.escape(cvar_cfg.description) %]</th>
38     <td>[% INCLUDE 'common/render_cvar_filter_input.html' cvar_cfg=cvar_cfg cvar_class="rs_input_field" %]</td>
39    </tr>
40   [% END %]
41  [% END %]
42
43  <tr>
44   <th>[% 'Include in Report' | $T8 %]</th>
45   <td>
46    <table>
47     <tr>
48      <td>[% L.select_tag('filter.active', [ [ 'active', LxERP.t8('Active') ], [ 'inactive', LxERP.t8('Inactive') ], [ 'both', LxERP.t8('Both') ] ], default=filter.active, style="width: 200px") %]</td>
49     </tr>
50
51     <tr>
52      <td>[% L.select_tag('filter.valid', [ [ 'valid', LxERP.t8('Valid') ], [ 'invalid', LxERP.t8('Invalid') ], [ 'both', LxERP.t8('Both') ] ], default=filter.valid, style="width: 200px") %]</td>
53     </tr>
54
55     <tr>
56      <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
57     </tr>
58
59     [% FOREACH cvar_cfg = SELF.includeable_cvar_configs %]
60      <tr>
61       <td>
62        [% name__ = cvar_cfg.name;
63           L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
64       </td>
65      </tr>
66     [% END %]
67
68    </table>
69   </td>
70  </tr>
71 </table>
72
73 [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]