[BUGFIX] checkboxes name

This commit is contained in:
Marie Birner 2023-04-06 22:13:00 +02:00
parent 484e4e4175
commit fe69ea670e

View File

@ -39,9 +39,9 @@
<input type="hidden" name="id" value="{{ user.id }}" />
<div class="font-bold mb-1">{{ user.name }}</div>
<div class="grid md:grid-cols-3">
{{ macros::checkbox(label='Gast', name='is_guest', index=loop.index , checked=user.is_guest) }}
{{ macros::checkbox(label='Steuerberechtigter', name='is_cox', index=loop.index , checked=user.is_cox) }}
{{ macros::checkbox(label='Admin', name='is_admin', index=loop.index , checked=user.is_admin) }}
{{ macros::checkbox(label='Gast', name='is_guest', id=loop.index , checked=user.is_guest) }}
{{ macros::checkbox(label='Steuerberechtigter', name='is_cox', id=loop.index , checked=user.is_cox) }}
{{ macros::checkbox(label='Admin', name='is_admin', id=loop.index , checked=user.is_admin) }}
</div>
{% if user.pw %}
<a class="inline-block mt-1 text-primary-600 hover:text-primary-900 underline" href="/admin/user/{{ user.id }}/reset-pw">Passwort zurücksetzen</a>