Fix 'select all' widget

This commit is contained in:
jeremystretch 2021-04-05 17:13:32 -04:00
parent 7bd853e87b
commit d42b0691b2

View File

@ -1,6 +1,7 @@
{% extends 'base.html' %}
{% load buttons %}
{% load helpers %}
{% load render_table from django_tables2 %}
{% load static %}
{% block content %}
@ -28,6 +29,7 @@
{% block sidebar %}{% endblock %}
</div>
{% endif %}
<div class="table-responsive">
{% with bulk_edit_url=content_type.model_class|validated_viewname:"bulk_edit" bulk_delete_url=content_type.model_class|validated_viewname:"bulk_delete" %}
{% if permissions.change or permissions.delete %}
<form method="post" class="form form-horizontal">
@ -57,7 +59,7 @@
</div>
</div>
{% endif %}
{% include table_template|default:'responsive_table.html' %}
{% render_table table 'inc/table.html' %}
<div class="pull-left noprint">
{% block bulk_buttons %}{% endblock %}
{% if bulk_edit_url and permissions.change %}
@ -73,9 +75,10 @@
</div>
</form>
{% else %}
{% include table_template|default:'responsive_table.html' %}
{% render_table table 'inc/table.html' %}
{% endif %}
{% endwith %}
</div>
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
<div class="clearfix"></div>
</div>