Improve display
This commit is contained in:
parent
11e0202a7c
commit
c721dc0eae
1 changed files with 27 additions and 15 deletions
|
@ -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 %}
|
||||||
|
|
Loading…
Reference in a new issue