This commit is somehow result of merge with user_management branch.

This commit is contained in:
Michal Kváček
2016-01-21 11:17:17 +01:00
parent da13c15604
commit 012e150519
11 changed files with 216 additions and 4 deletions
@@ -0,0 +1,13 @@
<?php
return [
'name' => 'Full name',
'email' => 'Email',
'password' => 'Password',
'roles' => 'Please, select user\'s role',
'role_admin' => 'Admin',
'role_editor' => 'Editor',
'role_visitor' => 'Visitor',
'register' => 'Create user'
];
@@ -0,0 +1 @@
edituji uzivatele {{$id}}.
@@ -0,0 +1,61 @@
@extends('admin.layout')
@section('content')
<form method="POST" action="{{route('users.new')}}">
{!! 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 ($errors->has('email'))
<span class="help-block">
<strong>{{ $errors->first('email') }}</strong>
</span>
@endif
</label>
<label>
@lang('admin/userManagement.password')
<input type="text" name="password">
@if ($errors->has('password'))
<span class="help-block">
<strong>{{ $errors->first('password') }}</strong>
</span>
@endif
</label>
<div>
@lang('admin/userManagement.roles')
@foreach($roles as $role => $translation)
<label>
@lang($translation)
<input type="radio" name="role" value="{{$role}}">
</label>
@endforeach
@if ($errors->has('role'))
<span class="help-block">
<strong>{{ $errors->first('role') }}</strong>
</span>
@endif
</div>
<label>
<input type="submit" value="@lang('admin/userManagement.register')">
</label>
</form>
@stop