list.html 1.01 KB
Newer Older
Kálmán Viktor committed
1 2 3 4 5
{% extends "dashboard/base.html" %}
{% load staticfiles %}
{% load i18n %}
{% load render_table from django_tables2 %}

6
{% block title-page %}{% trans "Requests" %}{% endblock %}
Kálmán Viktor committed
7 8 9 10 11 12 13

{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
14 15 16 17
        <a class="btn btn-xs btn-primary pull-right "href="{% url "request.views.type-list" %}">
          {% trans "Request types" %}
        </a>
        <h3 class="no-margin"><i class="fa fa-phone"></i> {% trans "Requests" %}</h3>
Kálmán Viktor committed
18 19
      </div>
      <div class="panel-body">
20 21 22 23 24 25 26 27
        <div class="panel-body">
          {% trans "Filter by status" %}:
          <a href="{{ request.path }}">{% trans "ALL" %}</a>
          {% for s in statuses %}
            <a href="?status={{ s.0 }}">{{ s.1|upper }}</a>
          {% endfor %}
          <div class="table-responsive">
            {% render_table table %}
Kálmán Viktor committed
28 29 30 31 32 33 34
          </div>
        </div>
      </div><!-- .panel-body -->
    </div>
  </div>
</div>
{% endblock %}