<div id="tl_maintenance_cache" class="maintenance_{{ isActive ? 'active' : 'inactive' }}">

    <h2 class="sub_headline sub_headline_purge">{{ headline }}</h2>

    {% if message|default %}
        <div class="tl_message">
            {{ message|raw }}
        </div>
    {% endif %}

    <form class="tl_form" method="post">
        <div class="tl_formbody_edit">
            <input type="hidden" name="FORM_SUBMIT" value="tl_purge">
            <input type="hidden" name="REQUEST_TOKEN" value="{{ contao.request_token }}">
            <div class="tl_tbox">
                <fieldset class="tl_checkbox_container" data-controller="contao--check-all">
                    <table class="with-border with-padding">
                        <thead>
                        <tr>
                            <th><input type="checkbox" id="check_all" class="tl_checkbox" data-action="contao--check-all#toggleAll"></th>
                            <th>{{ job }}</th>
                            <th>{{ description }}</th>
                        </tr>
                        </thead>
                        <tbody>
                        {% for value, job in jobs %}
                            <tr class="hover-row toggle_select">
                                <td><input type="checkbox" name="purge[{{ job.group }}][]" id="{{ job.id }}" class="tl_checkbox" value="{{ value }}" data-contao--check-all-target="input" data-action="focus->contao--scroll-offset#store contao--check-all#toggleInput"></td>
                                <td class="nw"><label for="{{ job.id }}">{{ job.title }}</label>{{ job.affected|raw }}</td>
                                <td>{{ job.description|raw }}</td>
                            </tr>
                        {% endfor %}
                        </tbody>
                    </table>
                </fieldset>
                {% if help|default %}
                    <p class="tl_help tl_tip">{{ help }}</p>
                {% endif %}
            </div>
        </div>
        <div class="tl_submit_container">
            <button type="submit" name="clear" class="tl_submit">{{ submit }}</button>
        </div>
    </form>

</div>
