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">
|
||||
{% for round in rounds %}
|
||||
<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 %}
|
||||
</ul>
|
||||
{% else %}
|
||||
|
|
|
@ -35,11 +35,16 @@
|
|||
<div class="row">
|
||||
<div class="col-12">
|
||||
<h2>Séries</h2>
|
||||
<ul class="list-group">
|
||||
{% 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>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if session.rounds.all %}
|
||||
<ul class="list-group">
|
||||
{% for round in session.rounds.all %}
|
||||
<a href="#" class="list-group-item">{{ round.equipment.name }}
|
||||
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>Pas encore de série pour cette séance. Au boulot !</p>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
Loading…
Reference in a new issue