mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-21 03:15:45 -08:00
Added nag alert for unaccepted assets
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
891b5b2882
commit
97b9f96030
|
@ -377,6 +377,7 @@ return [
|
||||||
'assets_by_status_type' => 'Assets by Status Type',
|
'assets_by_status_type' => 'Assets by Status Type',
|
||||||
'pie_chart_type' => 'Dashboard Pie Chart Type',
|
'pie_chart_type' => 'Dashboard Pie Chart Type',
|
||||||
'hello_name' => 'Hello, :name!',
|
'hello_name' => 'Hello, :name!',
|
||||||
|
'unaccepted_profile_warning' => 'You have :count items requiring acceptance. Click here to accept or deny them',
|
||||||
|
|
||||||
|
|
||||||
];
|
];
|
|
@ -9,7 +9,19 @@
|
||||||
{{-- Account page content --}}
|
{{-- Account page content --}}
|
||||||
@section('content')
|
@section('content')
|
||||||
|
|
||||||
|
@if ($acceptances = \App\Models\CheckoutAcceptance::forUser(Auth::user())->pending()->count())
|
||||||
|
<div class="col-md-12">
|
||||||
|
<div class="alert alert alert-warning fade in">
|
||||||
|
<i class="fas fa-exclamation-triangle faa-pulse animated"></i>
|
||||||
|
|
||||||
|
<strong>
|
||||||
|
<a href="{{ route('account.accept') }}" style="color: white;">
|
||||||
|
{{ trans('general.unaccepted_profile_warning', array('count' => $acceptances)) }}
|
||||||
|
</a>
|
||||||
|
</strong>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
@endif
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
Loading…
Reference in a new issue