{% extends "admin/change_list.html" %} {% load i18n admin_list admin_static admin_urls cms_admin cms_js_tags cms_static cms_tags %} {# TODO might not need that #} {% block title %}{% trans "List of pages" %}{% endblock %} {% block bodyclass %}{{ block.super }} change-list cms-pagetree-wrapper{% endblock %} {% block coltype %}flex{% endblock %} {% block date_hierarchy %}{% date_hierarchy cl %}{% endblock %} {% block pagination %}{% endblock %} {% block extrahead %} {{ block.super }} {# INFO: we need to add styles here instead of "extrastyle" to avoid conflicts with adminstyle #} {% endblock extrahead %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content_title %}{% endblock %} {% block content %} {% spaceless %}

{% trans "Page Tree" %} ({{ cl.current_site.name }})

{% if cl.is_filtered or request.GET.q %} {# INFO: show reset button when filtering is active #} {% trans "Reset filter"|lower %} {% endif %}
{# INFO: hidden search field with dynamic content #}
{% search_form cl %}
{# INFO: dropdown for changing sites and recover deleted pages #}
{# INFO: hidden site form when using the dropdown site switcher #}
{% csrf_token %}
{# INFO: "new page" button #} {% if has_add_permission %} {% blocktrans with cl.opts.verbose_name|title as name %} New {{ name }} {% endblocktrans %} {% endif %}
{% csrf_token %} {# INFO: javascript is loaded from cms.pagetree.js #} {% if cl.get_items or cl.get_items and cl.is_filtered %}
{{ lang|upper }}", "key": "{{ lang }}" }, {% endfor %} { "title": "{{ _('Menu')|escapejs }}", "key": "menu" }, { "title": " ", "key": "options" }] }' data-settings-url="{% cms_admin_url "cms_usersettings_session_store" %}">
    {% if cl.is_filtered or request.GET.q %} {# INFO: load html data source when filtering #} {% for page in cl.get_items %} {% show_admin_menu page %} {% endfor %} {% endif %}
{% include "admin/cms/page/tree/legend.html" %} {% else %} {# INFO: show add a page button when there are no items #}
{% url opts|admin_urlname:'add' as add_url %} {% blocktrans %} There is no page around yet.
Add page now. {% endblocktrans %}
{% endif %}
{# INFO: used when copying nodes #}
{% endspaceless %} {% endblock content %}