Improve display

This commit is contained in:
Gabriel Augendre 2020-11-22 13:09:31 +01:00
parent 11e0202a7c
commit c721dc0eae
No known key found for this signature in database
GPG key ID: 1E693F4CE4AEE7B4

View file

@ -5,19 +5,31 @@
Exercices Exercices
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<div class="row">
<div class="col-12">
<h1>Exercices</h1> <h1>Exercices</h1>
</div>
</div>
<div class="row">
<div class="col-lg-7">
<ul class="list-group"> <ul class="list-group">
{% for exercise in exercises %} {% for exercise in exercises %}
<li class="list-group-item d-flex justify-content-between align-items-center"> <li class="list-group-item d-flex justify-content-between align-items-center">
{{ exercise.get_body_regions }}: {{ exercise.name }} {{ exercise.get_body_regions }}: {{ exercise.name }}
{% include "exercises/rating_badge.html" %} {% include "exercises/rating_badge.html" %}
</li> </li>
{% empty %}
<li class="list-group-item list-group-item-danger">Aucun exercice trouvé</li>
{% endfor %} {% endfor %}
</ul> </ul>
<hr> </div>
<div class="col-lg-4 offset-lg-1">
<hr class="d-block d-lg-none">
<form action="" method="get"> <form action="" method="get">
<h2>Filtres</h2> <h2>Filtres</h2>
{{ form|crispy }} {{ form|crispy }}
<button class="btn btn-primary" type="submit">Filtrer</button> <button class="btn btn-primary" type="submit">Filtrer</button>
</form> </form>
</div>
</div>
{% endblock %} {% endblock %}