Improve list-group display
This commit is contained in:
parent
784d64abff
commit
7d9b3c05d7
4 changed files with 10 additions and 6 deletions
|
@ -27,7 +27,7 @@
|
|||
<ul class="list-group">
|
||||
{% for setting in equipment.settings.all %}
|
||||
<a href="{% url 'setting-edit' setting.pk %}"
|
||||
class="list-group-item">{{ setting.name }}
|
||||
class="list-group-item list-group-item-action">{{ setting.name }}
|
||||
: {{ setting.value }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
<h2>Machines</h2>
|
||||
<ul class="list-group">
|
||||
{% for equipment in room.equipments.all %}
|
||||
<a href="{% url 'equipment-detail' equipment.pk %}" class="list-group-item">{{ equipment.name }}</a>
|
||||
<a href="{% url 'equipment-detail' equipment.pk %}"
|
||||
class="list-group-item list-group-item-action">{{ equipment.name }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -20,7 +21,8 @@
|
|||
<h2>Séances</h2>
|
||||
<ul class="list-group">
|
||||
{% for session in sessions %}
|
||||
<a href="{% url 'session-detail' session.pk %}" class="list-group-item">{{ session.start }}</a>
|
||||
<a href="{% url 'session-detail' session.pk %}"
|
||||
class="list-group-item list-group-item-action">{{ session.start }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -10,7 +10,8 @@
|
|||
<div class="col-12">
|
||||
<ul class="list-group">
|
||||
{% for room in rooms %}
|
||||
<a href="{% url 'room-detail' room.pk %}" class="list-group-item">{{ room.name }}</a>
|
||||
<a href="{% url 'room-detail' room.pk %}"
|
||||
class="list-group-item list-group-item-action">{{ room.name }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -27,7 +27,8 @@
|
|||
<h2>Machines</h2>
|
||||
<ul class="list-group">
|
||||
{% for equipment in session.room.equipments.all %}
|
||||
<a href="{% url 'equipment-detail' equipment.pk %}" class="list-group-item">{{ equipment.name }}</a>
|
||||
<a href="{% url 'equipment-detail' equipment.pk %}"
|
||||
class="list-group-item list-group-item-action">{{ equipment.name }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
@ -38,7 +39,7 @@
|
|||
{% if session.rounds.all %}
|
||||
<ul class="list-group">
|
||||
{% for round in session.rounds.all %}
|
||||
<a href="#" class="list-group-item">{{ round.equipment.name }}
|
||||
<a href="#" class="list-group-item list-group-item-action">{{ round.equipment.name }}
|
||||
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue