dynamic rbac and roles

This commit is contained in:
Priec
2026-08-09 12:56:57 +02:00
parent 29ccd8d2d7
commit 4d6c18988b
10 changed files with 630 additions and 27 deletions

View File

@@ -13,14 +13,13 @@
<label>Password <span>(optional)</span><input name="password" type="password" autocomplete="new-password"></label>
<label>Confirm password<input name="password_confirmation" type="password" autocomplete="new-password"></label>
{#
The three fields the client offers suggestions for. A datalist keeps the
The two fields the client offers suggestions for. A datalist keeps the
lists open — the backend, not this form, decides what is accepted — while
still showing the same choices the client's suggestion popup does.
There is no role field: everyone registers as `guest` and an admin
assigns a real role afterwards.
#}
<label>Role<input name="role" list="role-options" autocomplete="off"></label>
<datalist id="role-options">
{% for role in roles %}<option value="{{ role }}"></option>{% endfor %}
</datalist>
<label>Timezone<input name="timezone" list="timezone-options" autocomplete="off" placeholder="Europe/Bratislava"></label>
<datalist id="timezone-options">
{% for timezone in timezones %}<option value="{{ timezone }}"></option>{% endfor %}