{# Check for errors on some hidden form fields #}
{% set tmpns = namespace(error_not_found=true) %}
{%- for form_field_name in ['not_protocols', 'not_categories', 'not_classess', 'not_severities', 'not_detectors', 'not_detector_types', 'not_groups', 'not_inspection_errs', 'sortby', 'limit', 'page'] %}
{%- if form_field_name in g.search_form and g.search_form[form_field_name].errors %}
{% if tmpns.error_not_found %}{%- set tmpns.error_not_found = false %}{% endif %}
{{ macros_form.render_form_errors_labeled(g.search_form[form_field_name]) }}
{%- endif %}
{%- endfor %}
{%- endif %}
{%- if sqlqueries is defined %}
{{ macros_site.render_sql_queries(sqlqueries) }}
{%- endif %}
{{ macros_site.render_timemarks(time_marks) }}
{%- endif %}
{%- if after_cleanup %}
{{ get_icon('alert-warning') }} {{ _('At least a part of the searched time span might have already been cleaned up, potentially resulting in incomplete data.') }}