record-list.html 978 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{% extends "network/base.html" %}
{% load render_table from django_tables2 %}
{% load i18n %}
{% load l10n %}
{% load staticfiles %}

{% block content %}
<div class="page-header">
    <a href="{% url "network.record_create" %}" class="btn btn-success pull-right"><i class="icon-plus-sign"></i> {% trans "Create a new record" %}</a>
    <h1>
        {% trans "Records" %}
        <small>
            {% trans "list of all records" %}
        </small>
    </h1>
</div>

18 19 20 21 22 23 24 25
<ul class="nav nav-pills" style="margin: 5px 0 20px 0;">
    <li class="disabled"><a href="#">{% trans "Filter by type" %}</a></li>
    <li {% if not request.GET.type %} class="active"{% endif %}><a href="{{ request.path }}">{% trans "ALL" %}</a></li>
    {% for type in types %}
        <li{% if request.GET.type == type.0 %} class="active"{% endif %}><a href="?type={{ type.0 }}">{{ type.0 }}</a></li>
    {% endfor %}
</ul>

26 27 28 29
<div class="table-responsive">
    {% render_table table %}
</div>
{% endblock %}