index-groups.html 2.13 KB
Newer Older
Kálmán Viktor committed
1
{% load i18n %}
2 3
<div class="panel panel-default">
  <div class="panel-heading">
Kálmán Viktor committed
4
    <div class="pull-right toolbar">
5
      <span class="btn btn-default btn-xs infobtn" data-container="body" title="{% trans "List of groups that you have access to." %}"><i class="fa fa-info-circle"></i></span>
6
    </div>
7
    <h3 class="no-margin"><i class="fa fa-group"></i> {% trans "Groups" %}</h3>
Kálmán Viktor committed
8
  </div>
9
  <div class="list-group" id="vm-list-view">
10 11 12 13
    <div id="dashboard-group-list">
      {% for i in groups %}
      <a href="{% url "dashboard.views.group-detail" pk=i.pk %}" class="list-group-item real-link
      {% if forloop.last and groups|length < 5 %} list-group-item-last{% endif %}">
14
        <i class="fa fa-group"></i> {{ i.name }}
Kálmán Viktor committed
15
      </a>
16 17
      {% endfor %}
    </div>
18
    <div href="#" class="list-group-item list-group-footer text-right">
19
      <div class="row">
20 21 22 23 24 25 26 27 28
        <div class="col-xs-6">
          <form action="{% url "dashboard.views.group-list" %}" method="GET" id="dashboard-group-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="form-control btn btn-primary"><i class="fa fa-search"></i></button>
              </div>
            </div>
          </form>
29
        </div>
30
        <div class="col-xs-6 text-right">
31
          <a class="btn btn-primary btn-xs" href="{% url "dashboard.views.group-list" %}">
32
            <i class="fa fa-chevron-circle-right"></i>
33
            {% if more_groups > 0 %}
34 35 36 37 38
              {% blocktrans count more=more_groups %}
                <strong>{{ more }}</strong>  more
              {% plural %}
                <strong>{{ more }}</strong>  more
              {% endblocktrans %}
39
            {% else %}
40
              {% trans "list" %}
41
            {% endif %}
42
          </a>
43
          <a class="btn btn-success btn-xs group-create" href="{% url "dashboard.views.group-create" %}"><i class="fa fa-plus-circle"></i> {% trans "new" %} </a>
44 45
        </div>
      </div>
46 47 48
    </div>
  </div>
</div>