Files
core/resources/views/admin/userManagement/editForm.blade.php
T

54 lines
1.4 KiB
PHP

<form method="POST" action="{{route('users.newPost')}}">
{!! csrf_field() !!}
<label>
@lang('admin/userManagement.name')
<input type="text" placeholder="@lang('admin/userManagement.name')" name="name">
</label>
<label>
@lang('admin/userManagement.email')
<input type="text" name="email" placeholder="somebody@example.com">
@if (isset($errors) && $errors->has('email'))
<div class="callout alert">
{{ $errors->first('email') }}
</div>
@endif
</label>
<label>
@lang('admin/userManagement.password')
<input type="text" name="password">
@if (isset($errors) && $errors->has('password'))
<div class="callout alert">
{{ $errors->first('password') }}
</div>
@endif
</label>
<label>
@lang('admin/userManagement.roles')
<select name="role">
@foreach($roles as $role => $translation)
<option value="{{$role}}">@lang($translation)</option>
@endforeach
</select>
</label>
@if (isset($errors) && $errors->has('role'))
<div class="callout alert">
{{ $errors->first('role') }}
</div>
@endif
<label>
<button type="submit" class="button success">@lang('admin/userManagement.register')</button>
</label>
</form>