{% extends 'oscar/dashboard/layout.html' %} {% load category_tags %} {% load i18n %} {% load render_table from django_tables2 %} {% block body_class %}{{ block.super }} catalogue{% endblock %} {% block title %} {% trans "Categories" %} | {{ block.super }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block dashboard_content %} {% if not request.GET.name %}
{% trans "You are editing:" %} {% trans "Home" %} {% if ancestors %} > {% for ancestor in ancestors %} {{ ancestor.name }}{% if not forloop.last %} > {% endif %} {% endfor %} {% endif %}
{% endif %} {% block search_categories %}

{% trans "Search Categories" %}

{% comment %} Add the current query string to the search form so that the sort order is not reset when searching. {% endcomment %} {% for name, value in request.GET.items %} {% if name not in form.fields %} {% endif %} {% endfor %} {% include "oscar/dashboard/partials/form_fields_inline.html" with form=form %} {% trans "Reset" %}
{% endblock %} {% if category_list or child_categories %}
{% csrf_token %} {% block bulk_action %} {% trans "Categories" as module_label %} {% include "oscar/dashboard/partials/bulk_actions.html" with page_objects_count=categories.page.object_list.data.count num_pages=categories.paginator.num_pages total_count=categories.paginator.count module=module_label %} {% endblock bulk_action %} {% block category_table %} {% render_table categories %} {% endblock category_table %}
{% elif request.GET.name %}

{% trans "No categories found." %}

{% endif %} {% if not child_categories %}

{% trans "There are no categories." %}

{% endif %} {% endblock dashboard_content %} {% block onbodyload %} {{ block.super }} oscar.dashboard.bulk_actions.init(); {% endblock onbodyload %}