{% extends 'base.html.twig' %}
{% form_theme form 'form/custom_form_errors.html.twig' %}
{% set title = 'Filter form to search jobs' %}
{% block title %}
{{ title }}
{% endblock %}
{% block body %}
<div class="container mt-5">
<h1 class="mb-5">{{ title }}</h1>
{% for message in app.flashes('error') %}
<div class="alert alert-danger">
{{ message }}
</div>
{% endfor %}
{{ form(form) }}
{% if download|length > 0 %}
<div class="card mt-5">
<div class="card-body">
<h2 class="card-title">Download the result files</h2>
<ul class="mb-0">
<li>
<a href="{{ path('download', {name: download.jobs.file}) }}">Jobs results</a>
<span>({{ download.jobs.entries }} entries)</span>
</li>
<li>
<a href="{{ path('download', {name: download.merge.file}) }}">Filtered jobs</a>
<span>({{ download.merge.entries }} entries)</span>
</li>
</ul>
</div>
</div>
{% endif %}
</div>
{% endblock %}