## -*- 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:
${_('Search')}
% endif
% if h.hasRole(['admin']) and g.mpuls_config.is_enabled('search', 'option-editor'):
${_('Responsibility')}
% 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'):
${_('Responsibility')}
% else:
% endif
% endif
% if g.mpuls_config.is_enabled('search', 'option-state'):
${_('Status')}
% if g.mpuls_config.is_enabled('case-module', 'anonymize'):
% endif
% endif
% if g.mpuls_config.is_enabled('search', 'option-phase'):
${_('Phase')}
% for n,p in enumerate(c.phases):
% endfor
% endif
% if g.mpuls_config.is_enabled('search', 'option-date'):
${_('Start date')}
${_('End date')}
% endif
% if g.mpuls_config.is_enabled('search', 'option-federalstate'):