feat(profile): Make the password selectable on click

This commit is contained in:
Tom Hubrecht 2024-09-17 10:36:37 +02:00
parent fd5e036f49
commit 0272edc266
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -11,7 +11,13 @@
{% if user.kanidm.radius_secret %}
<h3 class="has-text-weight-bold mb-3">Mot de passe WiFi :</h3>
<span class="button is-fullwidth is-primary is-size-4">{{ user.kanidm.radius_secret }}</span>
<input
id="radius-secret"
onclick="document.querySelector('#radius-secret').select()"
class="button is-fullwidth is-primary is-size-4"
value="{{ user.kanidm.radius_secret }}"
readonly
/>
<br>
{% endif %}