diff --git a/templates/admin/user/index.html.tera b/templates/admin/user/index.html.tera index b184930..645e07d 100644 --- a/templates/admin/user/index.html.tera +++ b/templates/admin/user/index.html.tera @@ -39,9 +39,9 @@
{{ user.name }}
- {{ macros::checkbox(label='Gast', name='is_guest' ~ loop.index , checked=user.is_guest) }} - {{ macros::checkbox(label='Steuerberechtigter', name='is_cox' ~ loop.index , checked=user.is_cox) }} - {{ macros::checkbox(label='Admin', name='is_admin' ~ loop.index , checked=user.is_admin) }} + {{ 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) }}
{% if user.pw %} Passwort zurücksetzen diff --git a/templates/includes/macros.html.tera b/templates/includes/macros.html.tera index 74af6ec..0898127 100644 --- a/templates/includes/macros.html.tera +++ b/templates/includes/macros.html.tera @@ -29,8 +29,8 @@ {% endmacro input %} -{% macro checkbox(label, name, checked=false) %} -