class filter tag

This commit is contained in:
vabene1111
2018-05-07 00:38:37 +02:00
parent 9b2d2bea4d
commit 8107e46b60
12 changed files with 32 additions and 31 deletions

View File

@@ -2,6 +2,7 @@
{% load crispy_forms_tags %}
{% load i18n %}
{% load django_tables2 %}
{% load class_tag %}
{% block title %}{% trans 'List' %} - {{ title }}{% endblock %}
@@ -10,6 +11,12 @@
<h3>{{ title }} {% trans 'List' %}</h3>
<br/>
{% if table.Meta.model|get_class == 'RecipeImport' %}
<a href="{% url 'batch_import_all' %}" class="btn btn-warning">{% trans 'Import all' %}</a>
<br/>
<br/>
{% endif %}
{% if table %}
{% render_table table %}
{% endif %}