mirror of
https://github.com/Crocmagnon/charasheet.git
synced 2024-11-22 22:48:03 +01:00
Hide unnecessary categories in groups
This commit is contained in:
parent
21c8e96132
commit
9448feed1d
1 changed files with 60 additions and 60 deletions
|
@ -8,6 +8,7 @@
|
||||||
<a href="{% url "party:create" %}" class="btn btn-primary mb-3">
|
<a href="{% url "party:create" %}" class="btn btn-primary mb-3">
|
||||||
<i class="fa-solid fa-user-plus"></i> Nouveau groupe
|
<i class="fa-solid fa-user-plus"></i> Nouveau groupe
|
||||||
</a>
|
</a>
|
||||||
|
{% if managed_parties %}
|
||||||
<h2>Groupes que vous gérez</h2>
|
<h2>Groupes que vous gérez</h2>
|
||||||
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
|
<div class="row row-cols-1 row-cols-md-2 row-cols-lg-3 g-4">
|
||||||
{% for party in managed_parties %}
|
{% for party in managed_parties %}
|
||||||
|
@ -32,10 +33,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
|
||||||
<div class="col">Aucun</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if played_parties %}
|
||||||
<h2 class="mt-3">Groupes dont vous êtes membre</h2>
|
<h2 class="mt-3">Groupes dont vous êtes membre</h2>
|
||||||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
|
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
|
||||||
{% for party in played_parties %}
|
{% for party in played_parties %}
|
||||||
|
@ -51,10 +52,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
|
||||||
<div class="col">Aucun</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if invited_to %}
|
||||||
<h2 class="mt-3">Groupes auxquels vous avez été invités</h2>
|
<h2 class="mt-3">Groupes auxquels vous avez été invités</h2>
|
||||||
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
|
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 g-4">
|
||||||
{% for party in invited_to %}
|
{% for party in invited_to %}
|
||||||
|
@ -70,8 +71,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% empty %}
|
|
||||||
<div class="col">Aucun</div>
|
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Reference in a new issue