mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Switch users restore over to POST
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
8bf09d9f89
commit
8fe59f8383
|
@ -120,7 +120,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
<div class="col-md-2 text-center">
|
<div class="text-center col-md-2">
|
||||||
@if ($user->avatar)
|
@if ($user->avatar)
|
||||||
<img src="/uploads/avatars/{{ $user->avatar }}" class="avatar img-thumbnail hidden-print" alt="{{ $user->present()->fullName() }}">
|
<img src="/uploads/avatars/{{ $user->avatar }}" class="avatar img-thumbnail hidden-print" alt="{{ $user->present()->fullName() }}">
|
||||||
@else
|
@else
|
||||||
|
@ -377,7 +377,12 @@
|
||||||
</div>
|
</div>
|
||||||
@else
|
@else
|
||||||
<div class="col-md-12" style="padding-top: 5px;">
|
<div class="col-md-12" style="padding-top: 5px;">
|
||||||
<a href="{{ route('restore/user', $user->id) }}" style="width: 100%;" class="btn btn-sm btn-warning hidden-print">{{ trans('button.restore') }}</a>
|
@if ($user->deleted_at!='')
|
||||||
|
<form method="POST" action="{{ route('restore/user', ['userId' => $user->id]) }}">
|
||||||
|
@csrf
|
||||||
|
<button style="width: 100%;" class="btn btn-sm btn-warning hidden-print">{{ trans('button.restore') }}</button>
|
||||||
|
</form>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
@endif
|
@endif
|
||||||
@endcan
|
@endcan
|
||||||
|
@ -573,7 +578,7 @@
|
||||||
|
|
||||||
<div class="col-md-12 col-sm-12">
|
<div class="col-md-12 col-sm-12">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table id="files-table" class="display table table-striped">
|
<table id="files-table" class="table display table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-5">{{ trans('general.notes') }}</th>
|
<th class="col-md-5">{{ trans('general.notes') }}</th>
|
||||||
|
@ -651,7 +656,7 @@
|
||||||
|
|
||||||
<div class="tab-pane" id="managed">
|
<div class="tab-pane" id="managed">
|
||||||
<div class="table-responsive">
|
<div class="table-responsive">
|
||||||
<table class="display table table-striped">
|
<table class="table display table-striped">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="col-md-8">{{ trans('general.name') }}</th>
|
<th class="col-md-8">{{ trans('general.name') }}</th>
|
||||||
|
|
Loading…
Reference in a new issue