FEATURE #1359: add user detail

This commit is contained in:
Michal Kváček
2016-01-24 20:21:09 +01:00
parent 8168525c97
commit c062fa1db3
8 changed files with 159 additions and 56 deletions
@@ -0,0 +1,54 @@
<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>