FEATURE #1359: add status changing (user management)
This commit is contained in:
@@ -1,24 +1,28 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'addNewUser' => 'Add new user',
|
||||
'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',
|
||||
'addNewUser' => 'Add new user',
|
||||
'name' => 'Full name',
|
||||
'email' => 'Email',
|
||||
'password' => 'Password',
|
||||
'roles' => 'Please, select user\'s role',
|
||||
'role_admin' => 'Admin',
|
||||
'role_editor' => 'Editor',
|
||||
'role_visitor' => 'Visitor',
|
||||
'status' => 'Status',
|
||||
'status_deleted' => 'Deleted',
|
||||
'status_blocked' => 'Blocked',
|
||||
'status_active' => 'Active',
|
||||
'register' => 'Create user',
|
||||
'registrationSuccessfull' => 'New user successfully added.',
|
||||
'profile' => 'Your profile',
|
||||
'overview' => 'List of all users',
|
||||
'noUsers' => 'No users avialable.',
|
||||
'detail' => 'Details of user :name (:email)',
|
||||
'editUser' => 'Editing user :name (:email)',
|
||||
'usersActions' => 'User\'s actions',
|
||||
'update' => 'Update informations',
|
||||
'passwordLeaveEmpty' => 'Leave empty, if you do not want to change it.',
|
||||
'userSuccessfullyEdited' => 'User successfully edited.',
|
||||
'profile' => 'Your profile',
|
||||
'overview' => 'List of all users',
|
||||
'noUsers' => 'No users avialable.',
|
||||
'detail' => 'Details of user :name (:email)',
|
||||
'editUser' => 'Editing user :name (:email)',
|
||||
'usersActions' => 'User\'s actions',
|
||||
'update' => 'Update informations',
|
||||
'passwordLeaveEmpty' => 'Leave empty, if you do not want to change it.',
|
||||
'userSuccessfullyEdited' => 'User successfully edited.',
|
||||
|
||||
];
|
||||
@@ -41,6 +41,22 @@
|
||||
{{ $errors->first('role') }}
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<label>
|
||||
@lang('admin/userManagement.status')
|
||||
|
||||
<select name="status">
|
||||
@foreach($states as $status => $translation)
|
||||
<option value="{{$status}}" @if($status == $user->status) selected @endif>@lang($translation)</option>
|
||||
@endforeach
|
||||
</select>
|
||||
</label>
|
||||
|
||||
@if (isset($errors) && $errors->has('role'))
|
||||
<div class="callout alert">
|
||||
{{ $errors->first('role') }}
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
|
||||
<label>
|
||||
|
||||
Reference in New Issue
Block a user