mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Handled user route names
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
5e488bd81f
commit
3e48f436af
|
@ -113,7 +113,7 @@
|
||||||
</a>
|
</a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="{{ route('users.edit', $user->id) }}">{{ trans('admin/users/general.edit') }}</a></li>
|
<li><a href="{{ route('users.edit', $user->id) }}">{{ trans('admin/users/general.edit') }}</a></li>
|
||||||
<li><a href="{{ route('clone/user', $user->id) }}">{{ trans('admin/users/general.clone') }}</a></li>
|
<li><a href="{{ route('users.clone.show', $user->id) }}">{{ trans('admin/users/general.clone') }}</a></li>
|
||||||
@if ((Auth::user()->id !== $user->id) && (!config('app.lock_passwords')) && ($user->deleted_at==''))
|
@if ((Auth::user()->id !== $user->id) && (!config('app.lock_passwords')) && ($user->deleted_at==''))
|
||||||
<li><a href="{{ route('users.destroy', $user->id) }}">{{ trans('button.delete') }}</a></li>
|
<li><a href="{{ route('users.destroy', $user->id) }}">{{ trans('button.delete') }}</a></li>
|
||||||
@endif
|
@endif
|
||||||
|
@ -173,7 +173,7 @@
|
||||||
|
|
||||||
@can('create', $user)
|
@can('create', $user)
|
||||||
<div class="col-md-12" style="padding-top: 5px;">
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
<a href="{{ route('clone/user', $user->id) }}" style="width: 100%;" class="btn btn-sm btn-primary hidden-print">{{ trans('admin/users/general.clone') }}</a>
|
<a href="{{ route('users.clone.show', $user->id) }}" style="width: 100%;" class="btn btn-sm btn-primary hidden-print">{{ trans('admin/users/general.clone') }}</a>
|
||||||
</div>
|
</div>
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
|
@ -228,7 +228,7 @@
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="col-md-12" style="padding-top: 5px;">
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
<form method="POST" action="{{ route('restore/user', $user->id) }}">
|
<form method="POST" action="{{ route('users.restore.store', $user->id) }}">
|
||||||
@csrf
|
@csrf
|
||||||
<button style="width: 100%;" class="btn btn-sm btn-warning hidden-print">{{ trans('button.restore') }}</button>
|
<button style="width: 100%;" class="btn btn-sm btn-warning hidden-print">{{ trans('button.restore') }}</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
|
@ -38,7 +38,7 @@ Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
||||||
Users\UsersController::class,
|
Users\UsersController::class,
|
||||||
'getClone'
|
'getClone'
|
||||||
]
|
]
|
||||||
)->name('clone/user');
|
)->name('users.clone.show');
|
||||||
|
|
||||||
Route::post(
|
Route::post(
|
||||||
'{userId}/clone',
|
'{userId}/clone',
|
||||||
|
@ -46,7 +46,7 @@ Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
||||||
Users\UsersController::class,
|
Users\UsersController::class,
|
||||||
'postCreate'
|
'postCreate'
|
||||||
]
|
]
|
||||||
)->name('clone/user');
|
)->name('users.clone.store');
|
||||||
|
|
||||||
Route::post(
|
Route::post(
|
||||||
'{userId}/restore',
|
'{userId}/restore',
|
||||||
|
@ -54,7 +54,7 @@ Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
||||||
Users\UsersController::class,
|
Users\UsersController::class,
|
||||||
'getRestore'
|
'getRestore'
|
||||||
]
|
]
|
||||||
)->name('restore/user');
|
)->name('users.restore.store');
|
||||||
|
|
||||||
Route::get(
|
Route::get(
|
||||||
'{userId}/unsuspend',
|
'{userId}/unsuspend',
|
||||||
|
|
Loading…
Reference in a new issue