Update gymnast listing
This commit is contained in:
parent
21750859d9
commit
79375c3d19
|
@ -27,7 +27,7 @@
|
|||
<table class="table tablesorter table-striped" data-sort="table" id="gymnast_table">
|
||||
<thead>
|
||||
<tr>
|
||||
{% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}
|
||||
{% if request.user|has_group:"trainer" %}
|
||||
<th style="width: 3%"></th>
|
||||
{% endif %}
|
||||
<th class="header text-left" style="width: 20%">Lastname</th>
|
||||
|
@ -41,11 +41,13 @@
|
|||
<tbody>
|
||||
{% for season_information in season_information_list %}
|
||||
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
||||
{% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}
|
||||
{% if request.user|has_group:"trainer" %}
|
||||
<td>
|
||||
{% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}
|
||||
<a href="{% url 'gymnast_update' season_information.gymnast.id %}">
|
||||
<span class="tim-icons icon-pencil text-warning"></span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</td>
|
||||
{% endif %}
|
||||
<td class="text-left">{% if season_information.gymnast.id in request.session.available_gymnast or request.user.is_superuser %}<a href="{% url 'gymnast_details' season_information.gymnast.id %}">{% endif %}{{ season_information.gymnast.last_name }}</a></td>
|
||||
|
|
Loading…
Reference in New Issue