feat(dgsi/profile): Hide the technical info by default

This commit is contained in:
Tom Hubrecht 2025-01-30 10:15:54 +01:00
parent ad244a26f5
commit 1a842639f5
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -12,7 +12,6 @@
<span class="button is-fullwidth">{{ user.username }}</span>
<br>
{% if user.kanidm %}
<h3 class="has-text-weight-bold mb-3">
<span>{% trans "Mot de passe WiFi :" %}</span>
@ -42,26 +41,32 @@
<br>
{% if user.kanidm %}
<h2 class="subtitle mt-4">{% trans "Informations techniques" %}</h2>
<h2 class="subtitle mt-4">
{% trans "Informations techniques" %}
<a class="tag is-medium is-primary is-light is-pulled-right"
onclick="document.querySelector('#technical-info').classList.toggle('is-hidden')">{% trans "Afficher" %}</a>
</h2>
<hr>
<h3 class="has-text-weight-bold mb-3">{% trans "Identifiant unique :" %}</h3>
<div id="technical-info" class="is-hidden">
<h3 class="has-text-weight-bold mb-3">{% trans "Identifiant interne :" %}</h3>
<input id="uuid"
onclick="document.querySelector('#uuid').select()"
class="button is-fullwidth"
value="{{ user.kanidm.person.uuid }}"
readonly />
<br>
<input id="uuid"
onclick="document.querySelector('#uuid').select()"
class="button is-fullwidth is-light"
value="{{ user.kanidm.person.uuid }}"
readonly />
<br>
<h3 class="has-text-weight-bold mb-3">{% trans "Membre des groupes suivants :" %}</h3>
<h3 class="has-text-weight-bold mb-3">{% trans "Membre des groupes suivants :" %}</h3>
<div class="grid groups">
{% for group in user.kanidm.person.memberof %}
<div class="cell button is-static">
<span>{{ group }}</span>
</div>
{% endfor %}
<div class="grid groups">
{% for group in user.kanidm.person.memberof %}
<div class="cell button is-static">
<span>{{ group }}</span>
</div>
{% endfor %}
</div>
</div>
{% else %}
<div class="notification is-primary is-light has-text-centered mt-6">