Fix display of round + add link to rounds where missing
This commit is contained in:
parent
7d9b3c05d7
commit
a1e1e5490c
2 changed files with 4 additions and 2 deletions
|
@ -43,7 +43,8 @@
|
||||||
{% if rounds %}
|
{% if rounds %}
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for round in rounds %}
|
{% for round in rounds %}
|
||||||
<a href="{% url 'round-edit' round.pk %}" class="list-group-item">{{ round.repetition_number }} répétitions
|
<a href="{% url 'round-edit' round.pk %}"
|
||||||
|
class="list-group-item list-group-item-action">{{ round.repetition_number }} répétitions
|
||||||
× {{ round.chosen_weight }} {{ equipment.unit }}</a>
|
× {{ round.chosen_weight }} {{ equipment.unit }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -39,7 +39,8 @@
|
||||||
{% if session.rounds.all %}
|
{% if session.rounds.all %}
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for round in session.rounds.all %}
|
{% for round in session.rounds.all %}
|
||||||
<a href="#" class="list-group-item list-group-item-action">{{ round.equipment.name }}
|
<a href="{% url 'round-edit' round.pk %}"
|
||||||
|
class="list-group-item list-group-item-action">{{ round.equipment.name }}
|
||||||
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue