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