{% extends "touchtechnology/admin/workbook/base.html" %} {% load i18n common admin_lists admin_workbook guardian_tags %} {% comment %} A list page: its heading with the button that adds another, a search box when the list is long, then the list itself (``list_template``). Blocks: page-head, head-actions, nav-pills-list (more buttons beside Add), list-tools, list. {% endcomment %} {% block page_title %}{{ model|types|capfirst }}{% endblock %} {% block content %} {% block page-head %}
{% block eyebrow-wrap %}{% if component %}

{{ component.verbose_name }}

{% endif %}{% endblock %}

{% block heading %}{{ model|types|capfirst }}{% endblock %}

{% block lede %}{% if paginator %}

{% blocktrans count counter=paginator.count %}{{ counter }} in all{% plural %}{{ counter }} in all{% endblocktrans %}{% if search %} {% blocktrans %}matching “{{ search }}”{% endblocktrans %}{% endif %}

{% endif %}{% endblock %}
{% block head-actions %} {% with model_perms=model|hasperm:user %} {% block nav-pills-list %} {% if add_perm in model_perms and create_url %} {% icon "plus" %}{% blocktrans with type=model|type %}Add {{ type }}{% endblocktrans %} {% endif %} {% endblock nav-pills-list %} {% endwith %} {% endblock head-actions %}
{% endblock page-head %} {% include "touchtechnology/admin/workbook/_sections.html" %} {% block list-tools %} {% if searchable %}
{% if search %}{% trans "Show all" %}{% endif %}
{% endif %} {% endblock list-tools %} {% block list %}
{% include list_template|default:"touchtechnology/admin/workbook/list.inc.html" %}
{% endblock list %} {% endblock %}