## -*- coding: utf-8 -*- % if g.mpuls_config.is_enabled('case-module', 'search'): ${self.buildFormHeader()}
<% search_field_set = False for i in g.mpuls_config.get('case', 'fields'): if i.get('search_match', False): search_field_set = True %> % if search_field_set: % endif % if h.hasRole(['admin']) and g.mpuls_config.is_enabled('search', 'option-editor'): % endif % if h.hasRole(['admin']) and g.mpuls_config.is_enabled('search', 'option-agency'): % endif % if h.hasRole(['cm']): % if g.mpuls_config.is_enabled('case-module', 'organisation') and g.mpuls_config.is_enabled('search', 'option-responsibilty'): % else: % endif % endif % if g.mpuls_config.is_enabled('search', 'option-state'): % endif % if g.mpuls_config.is_enabled('search', 'option-phase'): % endif % if g.mpuls_config.is_enabled('search', 'option-date'): % endif % if g.mpuls_config.is_enabled('search', 'option-federalstate'): % endif % if g.case_search.supports_option("gender") and g.mpuls_config.is_enabled('search', 'option-gender'): % endif <%include file="/casemanagement/search_extra.mako" />
${_('Search')}
${_('Responsibility')}
${_('Responsibility')}
${_('Status')}

% if g.mpuls_config.is_enabled('case-module', 'anonymize'):
% endif
${_('Phase')} % for n,p in enumerate(c.phases): % endfor
${_('Start date')}
${_('End date')}
${_('Federal state')} ${_('Select all')} | ${_('Deselect all')}
${_('Gender')}
${self.buildSearchExtend()} ${self.buildSearchReset()}
% endif <%def name="showCount(num)"> ${"(%s)" % num} <%def name="buildFormHeader()">
<%def name="buildSearchReset()"> ${_('Reset search')} <%def name="buildSearchExtend()"> % if c.extended_search: ${_('Hide extended search')} % else: ${_('Show extended search')} % endif ${h.getHelp('extended_search')}