user-list.html 1.38 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{% extends "dashboard/base.html" %}
{% load staticfiles %}
{% load i18n %}
{% load render_table from django_tables2 %}

{% block title-page %}{% trans "Users" %}{% endblock %}

{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
14
        <a href="{% url "dashboard.views.user-create" %}" class="pull-right btn btn-success btn-xs">
15 16 17 18 19 20
          <i class="fa fa-plus"></i> {% trans "new user" %}
        </a>
        <h3 class="no-margin"><i class="fa fa-user"></i> {% trans "Users" %}</h3>
      </div>
      <div class="panel-body">
        <div class="row">
21
          <div class="col-md-offset-8 col-md-4" id="user-list-search">
22 23 24 25 26 27 28 29 30 31 32
            <form action="" method="GET">
              <div class="input-group">
                {{ search_form.s }}
                <div class="input-group-btn">
                  {{ search_form.stype }}
                  <button type="submit" class="btn btn-primary input-tags">
                    <i class="fa fa-search"></i>
                  </button>
                </div>
              </div><!-- .input-group -->
            </form>
33
          </div><!-- .col-md-4 #user-list-search -->
34 35 36 37 38 39 40 41 42 43 44 45
        </div>
      </div>
      <div class="panel-body">
        <div class="table-responsive">
          {% render_table table %}
        </div>
      </div>
    </div>
  </div>
</div>

{% endblock %}