This commit is somehow result of merge with user_management branch.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user