feat(profile): Add more informations

This commit is contained in:
Tom Hubrecht 2024-09-16 19:07:19 +02:00
parent 82123717cc
commit fd5e036f49
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -8,19 +8,30 @@
</h2>
<hr>
<h3 class="has-text-weight-bold mb-3">Identifiant unique :</h3>
{% if user.kanidm.radius_secret %}
<h3 class="has-text-weight-bold mb-3">Mot de passe WiFi :</h3>
<span class="button is-fullwidth">{{ user.kanidm.person.uuid }}</span>
<span class="button is-fullwidth is-primary is-size-4">{{ user.kanidm.radius_secret }}</span>
<br>
{% endif %}
<h3 class="has-text-weight-bold mb-3">Adresse e-mail :</h3>
<span class="button is-fullwidth">{{ user.email }}</span>
<br>
<h3 class="has-text-weight-bold mb-3">Token RADIUS :</h3>
<h2 class="subtitle mt-4">Informations techniques</h2>
<hr>
<span class="button is-fullwidth">{{ user.kanidm.radius_secret }}</span>
<h3 class="has-text-weight-bold mb-3">Identifiant unique :</h3>
<span class="button is-fullwidth is-static">{{ user.kanidm.person.uuid }}</span>
<br>
<h3 class="has-text-weight-bold mb-3">Membre des groupes suivants :</h3>
<div class="grid" style="--bulma-grid-column-min: 24rem">
{% for group in user.kanidm.person.memberof %}
<span class="button is-fullwidth">{{ group }}</span><br>
<span class="cell button is-fullwidth is-static">{{ group }}</span>
{% endfor %}
</div>
{% endblock content %}