6 [% L.hidden_tag("_include_cvars_from_form", 1) %]
8 <table id="filter_table">
10 <th align="right">[% 'Number' | $T8 %]</th>
11 <td>[% L.input_tag('filter.projectnumber:substr::ilike', filter.projectnumber_substr__ilike, size=60) %]</td>
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>
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>
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>
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>
34 [% FOREACH cvar_cfg = SELF.cvar_configs %]
35 [%- IF cvar_cfg.searchable %]
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>
44 <th>[% 'Include in Report' | $T8 %]</th>
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>
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>
56 <td>[% L.select_tag('filter.status', [ [ 'all', LxERP.t8('All') ], [ 'orphaned', LxERP.t8('Orphaned') ] ], default=filter.status, style="width: 200px") %]</td>
59 [% FOREACH cvar_cfg = SELF.includeable_cvar_configs %]
62 [% name__ = cvar_cfg.name;
63 L.checkbox_tag("include_cvars_" _ name__, value="1", checked=(SELF.include_cvars.$name__ ? 1 : ''), label=cvar_cfg.description) %]
73 [% L.button_tag('$("#search_form").resetForm()', LxERP.t8('Reset')) %]