ForRo/templates/forms/add-member-form.twig
Ro 54b5227a0d 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.
2022-12-12 17:42:40 -08:00

37 lines
1.2 KiB
Twig

<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>