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