2016-03-01 11:23:03 -05:00
|
|
|
{% extends 'django_tables2/table.html' %}
|
|
|
|
{% load django_tables2 %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{# Wraps a table inside a Bootstrap panel and includes custom pagination rendering #}
|
|
|
|
|
|
|
|
{% block table %}
|
|
|
|
<div class="panel panel-{{ panel_class|default:'default' }}">
|
|
|
|
{% if heading %}
|
|
|
|
<div class="panel-heading">
|
|
|
|
<strong>{{ heading }}</strong>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% if table.rows %}
|
|
|
|
{{ block.super }}
|
|
|
|
{% else %}
|
|
|
|
<div class="panel-body text-muted">None</div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block pagination %}
|
2017-03-29 16:45:25 -04:00
|
|
|
{% if not hide_paginator %}
|
2017-04-20 13:07:22 -04:00
|
|
|
{% include 'table_paginator.html' %}
|
2017-03-29 16:45:25 -04:00
|
|
|
{% endif %}
|
2016-03-01 11:23:03 -05:00
|
|
|
{% endblock pagination %}
|