mirror of
https://koodu.h-i.works/projects/thebadspace
synced 2025-06-25 16:04:37 -05:00
Auth Framework, Part 1
Started buildig the authorization infrastructure to 1. create the initial admin class to then 2. the Auth manager class can be created to manage access based on roles. added number of template files as well just as a UI base to get things started. Auth Framework Part 2 will complete the Auth mangager and clean up the admin area.
This commit is contained in:
36
templates/forms/add-member-form.twig
Normal file
36
templates/forms/add-member-form.twig
Normal file
@ -0,0 +1,36 @@
|
||||
<form action="{{ path('members-add') }}" method="post" enctype="multipart/form-data">
|
||||
<div>
|
||||
<label>Handle</label><br/>
|
||||
<input type="text" name="handle" value=""/>
|
||||
<br/>
|
||||
<label>Email</label><br/>
|
||||
<input type="text" name="email" value=""/>
|
||||
<br/>
|
||||
<label>Gender</label><br/>
|
||||
<select name="gender">
|
||||
<option value="" disabled selected>Choose Gender
|
||||
</option>
|
||||
<option value="man">Man</option>
|
||||
<option value="woman">Woman</option>
|
||||
<option value="non_binary">Non-Binary</option>
|
||||
</select>
|
||||
<br/>
|
||||
<label>Pronoun</label><br/>
|
||||
<select name="pronoun">
|
||||
<option value="" disabled selected>Choose Pronoun</option>
|
||||
<option value="they/them">They/Them</option>
|
||||
<option value="she/her">She/Her</option>
|
||||
<option value="he/him">He/Him</option>
|
||||
</select>
|
||||
<br/>
|
||||
<label>Role</label><br/>
|
||||
<select name="role">
|
||||
<option value="" disabled selected>Choose Role
|
||||
</option>
|
||||
<option value="1">Admin</option>
|
||||
<option value="2">Editor</option>
|
||||
<option value="3">Contributer</option>
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
|
||||
<input type="submit" value="Add Member" name="submit_button"></form>
|
Reference in New Issue
Block a user