dynamic rbac and roles
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user