forked from are0h/TheBadSpace
Added Front listings and member editing
Added the template for to display locations on the front end. Still need to add template for individual locations. Also added member editing. Still need to wire up the avatar uploading but adding and editing member information is possible. Still need to fine tune it according to rolessymfony-version
parent
e897453664
commit
c5d1ab0266
@ -0,0 +1,7 @@
|
|||||||
|
section[role="members-index"] {
|
||||||
|
width: 100%;
|
||||||
|
max-width: 600px;
|
||||||
|
padding: 10px;
|
||||||
|
margin: 0 auto;
|
||||||
|
color: var(--white);
|
||||||
|
}
|
@ -0,0 +1,80 @@
|
|||||||
|
<form action="{{ path('den-members') }}" method="post" enctype="multipart/form-data">
|
||||||
|
<div>
|
||||||
|
<label>Handle</label><br/>
|
||||||
|
<input type="text" name="handle" value="{{ options.currentMember.handle }}"/>
|
||||||
|
<br/>
|
||||||
|
<label>Email</label><br/>
|
||||||
|
<input type="text" name="email" value="{{ options.currentMember.email }}"/>
|
||||||
|
<br/>
|
||||||
|
<label>New Password</label><br/>
|
||||||
|
<input type="password" name="new_pass" value=""/>
|
||||||
|
<br/>
|
||||||
|
<label>New Password Confirm</label><br/>
|
||||||
|
<input type="password" name="new_pass_confirm" value=""/>
|
||||||
|
<br/>
|
||||||
|
<label>Gender</label><br/>
|
||||||
|
<select name="gender">
|
||||||
|
{% if options.currentMember.gender is same as ("non_binary") %}
|
||||||
|
<option value="man">Man</option>
|
||||||
|
<option value="woman">Woman</option>
|
||||||
|
<option value="non_binary" selected>Non-Binary</option>
|
||||||
|
{% elseif options.currentMember.gender is same as ("woman") %}
|
||||||
|
<option value="man">Man</option>
|
||||||
|
<option value="woman" selected>Woman</option>
|
||||||
|
<option value="non_binary">Non-Binary</option>
|
||||||
|
{% elseif options.currentMember.gender is same as ("man") %}
|
||||||
|
<option value="man" selected>Man</option>
|
||||||
|
<option value="woman">Woman</option>
|
||||||
|
<option value="non_binary">Non-Binary</option>
|
||||||
|
{% endif %}
|
||||||
|
</select>
|
||||||
|
<br/>
|
||||||
|
<label>Pronoun</label><br/>
|
||||||
|
<select name="pronoun">
|
||||||
|
{% if options.currentMember.pronoun is same as ("they/them") %}
|
||||||
|
<option value="they/them" selected>They/Them</option>
|
||||||
|
<option value="she/her">She/Her</option>
|
||||||
|
<option value="he/him">He/Him</option>
|
||||||
|
{% elseif options.currentMember.pronoun is same as ("she/her") %}
|
||||||
|
<option value="they/them">They/Them</option>
|
||||||
|
<option value="she/her" selected>She/Her</option>
|
||||||
|
<option value="he/him">He/Him</option>
|
||||||
|
{% elseif options.currentMember.pronoun is same as ("he/him") %}
|
||||||
|
<option value="they/them">They/Them</option>
|
||||||
|
<option value="she/her">She/Her</option>
|
||||||
|
<option value="he/him" selected>He/Him</option>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
</select>
|
||||||
|
<br/>
|
||||||
|
<label>Active?</label><br/>
|
||||||
|
<select name="active">
|
||||||
|
{% if options.currentMember.active %}
|
||||||
|
<option value="false">No</option>
|
||||||
|
<option value="true" selected>Yes</option>
|
||||||
|
{% else %}
|
||||||
|
<option value="false" selected>No</option>
|
||||||
|
<option value="true">Yes</option>
|
||||||
|
{% endif %}
|
||||||
|
</select><br/>
|
||||||
|
<label>Role</label><br/>
|
||||||
|
<select name="role">
|
||||||
|
{% if options.currentMember.role is same as (1) %}
|
||||||
|
<option value="1" selected>Admin</option>
|
||||||
|
<option value="2">Editor</option>
|
||||||
|
<option value="3">Contributer</option>
|
||||||
|
{% elseif options.currentMember.role is same as (2) %}
|
||||||
|
<option value="1">Admin</option>
|
||||||
|
<option value="2" selected>Editor</option>
|
||||||
|
<option value="3">Contributer</option>
|
||||||
|
{% elseif options.currentMember.role is same as (3) %}
|
||||||
|
<option value="1">Admin</option>
|
||||||
|
<option value="2">Editor</option>
|
||||||
|
<option value="3" selected>Contributer</option>
|
||||||
|
{% endif %}
|
||||||
|
</select>
|
||||||
|
</div>
|
||||||
|
<input type="hidden" name="token" value="{{ csrf_token('upload') }}"/>
|
||||||
|
<input type="hidden" name="member_id" value="{{ options.currentMember.id }}"/>
|
||||||
|
<input type="hidden" name="mode" value="edit"/>
|
||||||
|
<input type="submit" value="Edit Member" name="submit_button"></form>
|
Loading…
Reference in New Issue