Improve list-group display

This commit is contained in:
Gabriel Augendre 2018-03-18 16:07:16 +01:00
parent 784d64abff
commit 7d9b3c05d7
No known key found for this signature in database
GPG key ID: F360212F958357D4
4 changed files with 10 additions and 6 deletions

View file

@ -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>

View file

@ -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>

View file

@ -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>

View file

@ -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 }}
&ndash; {{ round.repetition_number }} répétitions &times; {{ round.chosen_weight }} {{ round.equipment.unit }}</a>
{% endfor %}
</ul>