index-groups.html 1.91 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" title="{% trans "List of groups that you have access to." %}"><i class="icon-info-sign"></i></span>
Kálmán Viktor committed
6
    </div> 
7
    <h3 class="no-margin"><i class="icon-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 %}">
Kálmán Viktor committed
14 15
        <i class="icon-group"></i> {{ i.name }}
      </a>
16 17
      {% endfor %}
    </div>
18
    <div href="#" class="list-group-item list-group-footer text-right">
19 20
      <div class="row">
        <div class="col-sm-6 col-xs-6 input-group input-group-sm">
21
          <input id="dashboard-group-search-input" type="text" class="form-control" placeholder="{% trans "Search..." %}" />
22
          <div class="input-group-btn">
23
            <button type="submit" class="form-control btn btn-primary"><i class="icon-search"></i></button>
24 25 26 27
          </div>
        </div>
        <div class="col-sm-6 text-right">
          <a class="btn btn-primary btn-xs" href="{% url "dashboard.views.group-list" %}">
28 29
            <i class="icon-chevron-sign-right"></i> 
	    {% if more_groups > 0 %}
30 31 32 33 34
              {% blocktrans count more=more_groups %}
                <strong>{{ more }}</strong>  more
              {% plural %}
                <strong>{{ more }}</strong>  more
              {% endblocktrans %}
35 36 37
            {% else %}
              {% trans "list" %} 
            {% endif %}
38
          </a>
39
          <a class="btn btn-success btn-xs group-create" href="{% url "dashboard.views.group-create" %}"><i class="icon-plus-sign"></i> {% trans "new" %} </a>
40 41
        </div>
      </div>
42 43 44
    </div>
  </div>
</div>