Display units
This commit is contained in:
parent
9475578a07
commit
0dc4504d48
2 changed files with 11 additions and 6 deletions
|
@ -82,7 +82,7 @@
|
||||||
<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">{{ round.repetition_number }} répétitions
|
||||||
× {{ round.chosen_weight }}</a>
|
× {{ round.chosen_weight }} {{ equipment.unit }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|
|
@ -35,11 +35,16 @@
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<h2>Séries</h2>
|
<h2>Séries</h2>
|
||||||
|
{% 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">{{ round.equipment.name }} – {{ round.repetition_number }} répétitions × {{ round.chosen_weight }}</a>
|
<a href="#" class="list-group-item">{{ round.equipment.name }}
|
||||||
|
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
{% else %}
|
||||||
|
<p>Pas encore de série pour cette séance. Au boulot !</p>
|
||||||
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
Loading…
Reference in a new issue