index-users.html 2.32 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{% load i18n %}
<div class="panel panel-default">
  <div class="panel-heading">
    <div class="pull-right toolbar">
      <span class="btn btn-default btn-xs infobtn" data-container="body" title="{% trans "List of CIRCLE users." %}"><i class="fa fa-info-circle"></i></span>
    </div>
    <h3 class="no-margin"><i class="fa fa-users"></i> {% trans "Users" %}</h3>
  </div>
  <div class="list-group" id="user-list-view">
    <div id="dashboard-user-list">
      {% for i in users %}
      <a href="{% url "dashboard.views.profile" username=i.username %}" class="list-group-item real-link
      {% if forloop.last and users|length < 5 %} list-group-item-last{% endif %}">
14 15 16 17 18 19
        <span class="index-user-list-name">
          <i class="fa fa-user"></i> {% firstof i.get_full_name|safe i.username|safe %}
        </span>
        <span class="index-user-list-org">
          <small class="text-muted"> {{ i.profile.org_id|default:"" }}</small>
        </span>
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
      </a>
      {% endfor %}
    </div>
    <div class="list-group-item list-group-footer text-right">
      <div class="row">
        <div class="col-xs-6">
          <form action="{% url "dashboard.views.user-list" %}" method="GET" id="dashboard-user-search-form">
            <div class="input-group input-group-sm">
              <input id="dashboard-group-search-input" name="s" type="text" class="form-control" placeholder="{% trans "Search..." %}" />
              <div class="input-group-btn">
                <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i></button>
              </div>
            </div>
          </form>
        </div>
        <div class="col-xs-6 text-right">
          <a class="btn btn-primary btn-xs" href="{% url "dashboard.views.user-list" %}">
            <i class="fa fa-chevron-circle-right"></i>
            {% if more_users > 0 %}
              {% blocktrans count more=more_users %}
                <strong>{{ more }}</strong>  more
              {% plural %}
                <strong>{{ more }}</strong>  more
              {% endblocktrans %}
            {% else %}
              {% trans "list" %}
            {% endif %}
          </a>
48
          <a class="btn btn-success btn-xs user-create" href="{% url "dashboard.views.user-create" %}"><i class="fa fa-plus-circle"></i> {% trans "new" %} </a>
49 50 51 52 53
        </div>
      </div>
    </div>
  </div>
</div>