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">
|
<ul class="list-group">
|
||||||
{% for setting in equipment.settings.all %}
|
{% for setting in equipment.settings.all %}
|
||||||
<a href="{% url 'setting-edit' setting.pk %}"
|
<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>
|
: {{ setting.value }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
<h2>Machines</h2>
|
<h2>Machines</h2>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for equipment in room.equipments.all %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -20,7 +21,8 @@
|
||||||
<h2>Séances</h2>
|
<h2>Séances</h2>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for session in sessions %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -10,7 +10,8 @@
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for room in rooms %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -27,7 +27,8 @@
|
||||||
<h2>Machines</h2>
|
<h2>Machines</h2>
|
||||||
<ul class="list-group">
|
<ul class="list-group">
|
||||||
{% for equipment in session.room.equipments.all %}
|
{% 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 %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
{% 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">{{ 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>
|
– {{ round.repetition_number }} répétitions × {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in a new issue