{% extends "newman/ajax_content_base.html" %} {% load admin_list newman_list cache %} {% block breadcrumbs %} {% if not is_popup %} {% endif %} {% endblock %} {% spaceless %} {% block content_toolbar_left %}
{% if cl.has_filters %} {% if is_filtered %} {% trans 'Filters' %} ({% trans 'on!' %}) {% else %} {% trans 'Filters' %} {% endif %} {% endif %} {% comment %} {% if is_user_category_filtered %} {% trans "Categories filtered by user. Click to change." %} {% endif %} {% endcomment %} {% if cl.search_fields %} {% block search %}{% newman_search_form cl %}{% endblock %} {% endif %}
{% endblock %} {% block content_toolbar_right %} {% if has_add_permission %} {% blocktrans with cl.opts.verbose_name as name %}Add {{ name }}{% endblocktrans %} {% endif %} {% if not is_popup %} {% trans "Last edited" %} {% endif %} {% endblock %} {% endspaceless %} {% block content_services %} {{ block.super }}
{% if is_filtered %} {# Active filters listing #}
{% trans "Filtered by" %}: {% for active_filter in cl.active_filters %} {{ active_filter.0 }}: {{ active_filter.1 }} {% if not forloop.last %}  ,  {% endif %} {% endfor %} {% if is_user_category_filtered %} {% if cl.active_filters %}  ,  {% endif %} {% trans "Main categories filtered." %} {% endif %}
{% else %} {% if is_user_category_filtered %}
{% trans "Filtered by" %}: {% if cl.active_filters %}  ,  {% endif %} {% trans "Main categories filtered." %}
{% endif %} {% endif %} {% endblock %} {% if cl.formset.errors %}

{% blocktrans count cl.formset.errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{% endif %} {% block content %}
{% if cl.formset %} {{ cl.formset.management_form }} {% endif %} {% ifnotequal cl.paginator.num_pages 1 %}{% pagination cl %}{% endifnotequal %} {% block result_list %} {# % if actions_on_top and cl.full_result_count and not is_popup %}{% admin_actions %}{% endif % #} {% if action_form and actions_on_top and cl.full_result_count %}{% admin_actions %}{% endif %} {% newman_result_list cl %} {% if action_form and actions_on_bottom and cl.full_result_count %}{% admin_actions %}{% endif %} {% endblock %} {% block pagination %}{% pagination cl %}{% endblock %}
{% endblock %} {% block content_js %} {{ block.super }} {% if media %} {% cache 300 'nm-cl-js' cl %} {% endcache %} {% endif %} {% endblock %}