mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-12 14:27:33 -08:00
Added button and route
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
f4fc845375
commit
ca62481083
|
@ -218,6 +218,12 @@
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
|
|
||||||
|
@can('update', $user)
|
||||||
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
|
<a href="{{ route('users.transfer', $user->id) }}" style="width: 100%;" class="btn btn-sm btn-primary hidden-print">Transfer Items</a>
|
||||||
|
</div>
|
||||||
|
@endcan
|
||||||
|
|
||||||
@can('delete', $user)
|
@can('delete', $user)
|
||||||
@if ($user->deleted_at=='')
|
@if ($user->deleted_at=='')
|
||||||
<div class="col-md-12" style="padding-top: 30px;">
|
<div class="col-md-12" style="padding-top: 30px;">
|
||||||
|
|
|
@ -48,6 +48,22 @@ Route::group(['prefix' => 'users', 'middleware' => ['auth']], function () {
|
||||||
]
|
]
|
||||||
)->name('users.clone.store');
|
)->name('users.clone.store');
|
||||||
|
|
||||||
|
Route::get(
|
||||||
|
'{userId}/transfer',
|
||||||
|
[
|
||||||
|
Users\UsersController::class,
|
||||||
|
'getTransfer'
|
||||||
|
]
|
||||||
|
)->name('users.transfer.show');
|
||||||
|
|
||||||
|
Route::post(
|
||||||
|
'{userId}/transfer',
|
||||||
|
[
|
||||||
|
Users\UsersController::class,
|
||||||
|
'postTransfer'
|
||||||
|
]
|
||||||
|
)->name('users.transfer.store');
|
||||||
|
|
||||||
Route::post(
|
Route::post(
|
||||||
'{userId}/restore',
|
'{userId}/restore',
|
||||||
[
|
[
|
||||||
|
|
Loading…
Reference in a new issue