ponytracker/templates/accounts/team_list.html
2014-12-20 00:14:44 +01:00

44 lines
1.1 KiB
HTML

{% extends 'base_admin.html' %}
{% load staticfiles %}
{% load humanize %}
{% load bootstrap3 %}
{% block teamtab %} class="active"{% endblock %}
{% block moretabs %}
<a href="{% url 'add-team' %}" class="pull-right btn btn-success">Add team</a>
{% endblock %}
{% block tabcontent %}
<ul class="list-group">
{% if not paginator.count %}
<li class="list-group-item" style="line-height: 48px;">
<em>There are no teams quite yet.</em>
</li>
{% endif %}
{% for team in teams %}
<a class="list-group-item" href="{% url 'show-team' team.id %}" style="line-height: 48px;">
<div class="row">
<div class="col-md-8">
<strong>
{{ team }}
</strong>
</div>
<div class="col-md-2 text-muted">
{{ team.users.count }} user{{ team.users.count|pluralize }}
</div>
<div class="col-md-2 text-muted">
{{ team.groups.count }} group{{ team.groups.count|pluralize }}
</div>
</div>
</a>
{% endfor %}
</ul>
<div style="text-align: center;">
{% bootstrap_pagination teams %}
</div>
{% endblock %}