1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-09-06 02:59:05 +02:00

INSTALLED_APPS checks

This commit is contained in:
Ehouarn
2025-08-30 01:55:03 +02:00
parent 99a90867cc
commit 2a638e7b32
3 changed files with 13 additions and 7 deletions

View File

@@ -7,16 +7,19 @@
<dt class="col-xl-6">{% trans 'username'|capfirst %}</dt>
<dd class="col-xl-6">{{ user_object.username }}</dd>
{% if family_app_installed %}
<dt class="col-xl-6">{% trans 'family'|capfirst %}</dt>
<dd class="col-xl-6">
{% if families %}
test
{% for fam in families %}
<a href="{% url 'family:family_detail' fam.pk %}">{{ fam.name }}</a>{% if not forloop.last %}, {% endif %}
<a href="{% url 'family:family_detail' fam.pk %}">asfafs{{ fam.name }}</a>{% if not forloop.last %}, {% endif %}
{% endfor %}
{% else %}
<span class="text-muted">Aucune</span>
{% endif %}
</dd>
{% endif %}
{% if user_object.pk == user.pk %}
<dt class="col-xl-6">{% trans 'password'|capfirst %}</dt>