{% extends "wagtailadmin/generic/index.html" %}
{% load i18n wagtailadmin_tags %}

{% block extra_js %}
    <script>
        window.wagtailConfig.BULK_ACTION_ITEM_TYPE = 'SNIPPET';
    </script>
    <script defer src="{% versioned_static 'wagtailadmin/js/bulk-actions.js' %}"></script>
    {{ block.super }}
{% endblock %}

{% block bulk_actions %}
    {% trans "Select all snippets in listing" as select_all_text %}
    {% include 'wagtailadmin/bulk_actions/footer.html' with select_all_obj_text=select_all_text app_label=model_opts.app_label model_name=model_opts.model_name objects=page_obj %}
{% endblock %}
