File: multiTable.html

package info (click to toggle)
django-tables 2.7.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,752 kB
  • sloc: python: 7,120; makefile: 132; sh: 74
file content (25 lines) | stat: -rw-r--r-- 757 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "base.html" %}
{% load django_tables2 %}
{% load static %}

{% block extrahead %}
    <link href="file:///usr/share/javascript/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="{% static 'django_tables2/bootstrap.css' %}" rel="stylesheet" />
{% endblock %}

{% block body %}
    <div class="container">

        <h1>Multiple tables on a single page using MultiTableMixin</h1>

        <p>
            Pagination should work independently for each table,
            the second table excludes the column 'country'.
        </p>
        <div class="row">
            {% for table in tables %}
                <div class="col-lg-12">{% render_table table %}</div>
            {% endfor %}
        </div>
    </div>
{% endblock %}