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">
|
<table class="table tablesorter table-striped" data-sort="table" id="gymnast_table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<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>
|
<th style="width: 3%"></th>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<th class="header text-left" style="width: 20%">Lastname</th>
|
<th class="header text-left" style="width: 20%">Lastname</th>
|
||||||
|
@ -41,11 +41,13 @@
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for season_information in season_information_list %}
|
{% for season_information in season_information_list %}
|
||||||
<tr role="row" class="{% cycle 'odd' 'even' %}">
|
<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>
|
<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 %}">
|
<a href="{% url 'gymnast_update' season_information.gymnast.id %}">
|
||||||
<span class="tim-icons icon-pencil text-warning"></span>
|
<span class="tim-icons icon-pencil text-warning"></span>
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
{% endif %}
|
{% 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>
|
<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