ForRo/resources/views/forms/member-edit.blade.php
ro d0c8def297 added member edit admin ui
needed way to edit existing members info if needed, so simple ui was
created for admins of the site to change specific info, not including a
members avi or password.

also consolidated memeber action and ui into it's own controller for the
sake of clearer organization
2024-09-24 16:21:59 -06:00

34 lines
1.1 KiB
PHP

<form action="/den/member/edit" method="post" enctype="multipart/form-data">
<div>
<img class="your-avatar" src='{{$avatar}}'>
<br />
<label>Handle</label><br />
<input type="text" name="handle" value="{{$member->handle}}" />
<br />
<label>Email</label><br />
<input type="text" name="email" value="{{$member->email}}" />
<br />
<label>Pronouns</label><br />
<input type="text" name="pronouns" value="{{$member->pronoun}}" />
<br />
<label>Role</label><br />
<input type="text" name="role" value="{{$member->role}}" />
<br />
<label>Status</label><br />
<select name="status">
@if($member->active == true)
<option value="true" selected>Active</option>
<option value="false">Not Active</option>
@else
<option value="true">Active</option>
<option value="false" selected>Not Active</option>
@endif
</select>
<br />
</div>
@csrf
<input type="hidden" name="id" value="{{$member->uuid}}" />
<input type="submit" value="Edit Member" name="submit_button">
</form>