Ability to create account for members

This commit is contained in:
William Bouzourène 2026-03-18 19:17:25 +01:00
parent 07db65f63f
commit 2e332b8f3e
Signed by: bouzoure
GPG key ID: 423440D735B56BE2
5 changed files with 138 additions and 16 deletions

View file

@ -18,13 +18,13 @@
{% if Person.ID %}
{% if Person.IsMember %}
<li class="breadcrumb-item">
<a href="/admin/members/{{ Person.ID }}">
<a href="/members/{{ Person.ID }}">
{{ Person.LastName }} {{ Person.FirstName }}
</a>
</li>
{% else %}
<li class="breadcrumb-item">
<a href="/admin/contacts/{{ Person.ID }}">
<a href="/contacts/{{ Person.ID }}">
{{ Person.LastName }} {{ Person.FirstName }}
</a>
</li>
@ -345,6 +345,32 @@
</div>
{% endfor %}
{% if Person.IsMember or MembersPage %}
<div class="mt-4 mb-3">
<span class="h4"> Compte POP Vaud </span>
</div>
<div class="mb-1">
<input
type="checkbox"
class="form-check-input me-2"
id="account-enabled"
name="account-enabled"
autocomplete="off"
{% if PersonAccount.Enabled %}
checked
{% endif %}
/>
<label
for="account-enabled"
class="form-label"
>
Dispose d'un accès SSO <b class="text-danger">(test, ne pas toucher, MERCI)</b>
</label>
</div>
{% endif %}
<div class="my-5">
<button class="btn btn-outline-primary" type="submit">
<i class="me-1 bi-floppy"></i>