mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 13:44:06 -08:00
Use trans_choice for title
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
9c8411c7ff
commit
76129e9011
|
@ -6,7 +6,7 @@
|
||||||
{{ $company->name }}
|
{{ $company->name }}
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
{{ trans('general.audit_due_days', ['days' => $settings->audit_warning_days]) }}
|
{{ trans_choice('general.audit_due_days', $settings->audit_warning_days, ['days' => $settings->audit_warning_days]) }}
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
|
@ -18,23 +18,51 @@
|
||||||
|
|
||||||
{{-- Page content --}}
|
{{-- Page content --}}
|
||||||
@section('content')
|
@section('content')
|
||||||
|
{{-- Page content --}}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
<div class="box">
|
|
||||||
<div class="box-body">
|
|
||||||
|
|
||||||
@include('partials.asset-bulk-actions')
|
<!-- Custom Tabs -->
|
||||||
|
<div class="nav-tabs-custom">
|
||||||
|
<ul class="nav nav-tabs hidden-print">
|
||||||
|
|
||||||
|
<li class="active">
|
||||||
|
<a href="#due" data-toggle="tab">{{ trans('general.audit_due') }}
|
||||||
|
<span class="hidden-lg hidden-md">
|
||||||
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
|
<badge class="badge">{{ (isset($total_due_for_audit)) ? $total_due_for_audit : '' }}</badge>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="#overdue" data-toggle="tab">{{ trans('general.audit_overdue') }}
|
||||||
|
<span class="hidden-lg hidden-md">
|
||||||
|
<i class="far fa-file fa-2x" aria-hidden="true"></i>
|
||||||
|
</span>
|
||||||
|
<badge class="badge">{{ (isset($total_overdue_for_audit)) ? $total_overdue_for_audit : '' }}</badge>
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<div class="tab-content">
|
||||||
|
|
||||||
|
<div class="tab-pane active" id="due">
|
||||||
|
|
||||||
|
@include('partials.asset-bulk-actions',
|
||||||
|
[
|
||||||
|
'id_divname' => 'dueAssetEditToolbar',
|
||||||
|
'id_formname' => 'dueAssetEditForm',
|
||||||
|
'id_button' => 'dueAssetEditButton'])
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
<div class="table table-responsive">
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<table
|
<table
|
||||||
data-click-to-select="true"
|
data-click-to-select="true"
|
||||||
data-columns="{{ \App\Presenters\AssetAuditPresenter::dataTableLayout() }}"
|
data-columns="{{ \App\Presenters\AssetAuditPresenter::dataTableLayout() }}"
|
||||||
data-cookie-id-table="assetsAuditListingTable"
|
data-cookie-id-table="dueAssetAuditListing"
|
||||||
data-pagination="true"
|
data-pagination="true"
|
||||||
data-id-table="assetsAuditListingTable"
|
data-id-table="dueAssetAuditListing"
|
||||||
data-search="true"
|
data-search="true"
|
||||||
data-side-pagination="server"
|
data-side-pagination="server"
|
||||||
data-show-columns="true"
|
data-show-columns="true"
|
||||||
|
@ -44,28 +72,71 @@
|
||||||
data-show-refresh="true"
|
data-show-refresh="true"
|
||||||
data-sort-order="asc"
|
data-sort-order="asc"
|
||||||
data-sort-name="name"
|
data-sort-name="name"
|
||||||
data-toolbar="#assetsBulkEditToolbar"
|
data-toolbar="#dueAssetEditToolbar"
|
||||||
data-bulk-button-id="#bulkAssetEditButton"
|
data-bulk-button-id="#dueAssetEditButton"
|
||||||
data-bulk-form-id="#assetsBulkForm"
|
data-bulk-form-id="#dueAssetEditForm"
|
||||||
id="assetsAuditListingTable"
|
id="#dueAssetAuditListing"
|
||||||
class="table table-striped snipe-table"
|
class="table table-striped snipe-table"
|
||||||
data-url="{{ route('api.assets.to-audit', ['status' => 'due']) }}"
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'audits', 'upcoming_status' => 'due']) }}"
|
||||||
data-export-options='{
|
data-export-options='{
|
||||||
"fileName": "export-assets-due-audit-{{ date('Y-m-d') }}",
|
"fileName": "export-assets-due-audit-{{ date('Y-m-d') }}",
|
||||||
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
}'>
|
}'>
|
||||||
</table>
|
</table>
|
||||||
|
</div> <!-- end col-md-12 -->
|
||||||
|
</div><!-- end table-responsive -->
|
||||||
|
</div><!-- end row -->
|
||||||
|
</div><!-- end tab-pane -->
|
||||||
|
|
||||||
|
<div class="tab-pane" id="overdue">
|
||||||
|
|
||||||
|
@include('partials.asset-bulk-actions',
|
||||||
|
[
|
||||||
|
'id_divname' => 'overdueAssetEditToolbar',
|
||||||
|
'id_formname' => 'overdueAssetEditForm',
|
||||||
|
'id_button' => 'overdueAssetEditButton'])
|
||||||
|
|
||||||
|
<div class="row">
|
||||||
|
<div class="table table-responsive">
|
||||||
|
<div class="col-md-12">
|
||||||
|
<table
|
||||||
|
data-click-to-select="true"
|
||||||
|
data-columns="{{ \App\Presenters\AssetAuditPresenter::dataTableLayout() }}"
|
||||||
|
data-cookie-id-table="overdueAssetAuditListing"
|
||||||
|
data-pagination="true"
|
||||||
|
data-id-table="overdueAssetAuditListing"
|
||||||
|
data-search="true"
|
||||||
|
data-side-pagination="server"
|
||||||
|
data-show-columns="true"
|
||||||
|
data-show-fullscreen="true"
|
||||||
|
data-show-export="true"
|
||||||
|
data-show-footer="true"
|
||||||
|
data-show-refresh="true"
|
||||||
|
data-sort-order="asc"
|
||||||
|
data-sort-name="name"
|
||||||
|
data-toolbar="#overdueAssetEditToolbar"
|
||||||
|
data-bulk-button-id="#overdueAssetEditButton"
|
||||||
|
data-bulk-form-id="#overdueAssetEditForm"
|
||||||
|
id="#overdueAssetAuditListing"
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
data-url="{{ route('api.assets.list-upcoming', ['action' => 'audits', 'upcoming_status' => 'overdue']) }}"
|
||||||
|
data-export-options='{
|
||||||
|
"fileName": "export-assets-overdue-audit-{{ date('Y-m-d') }}",
|
||||||
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
|
}'>
|
||||||
|
</table>
|
||||||
|
</div> <!-- end col-md-12 -->
|
||||||
|
</div><!-- end table-responsive -->
|
||||||
|
</div><!-- end row -->
|
||||||
|
</div><!-- end tab-pane -->
|
||||||
|
</div><!-- end tab-content -->
|
||||||
|
</div><!-- end nav-tabs-custom -->
|
||||||
|
|
||||||
</div><!-- /.col -->
|
</div><!-- /.col -->
|
||||||
</div><!-- /.row -->
|
</div><!-- /.row -->
|
||||||
{{ Form::close() }}
|
|
||||||
</div><!-- ./box-body -->
|
|
||||||
</div><!-- /.box -->
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
@stop
|
@stop
|
||||||
|
|
||||||
@section('moar_scripts')
|
@section('moar_scripts')
|
||||||
@include('partials.bootstrap-table')
|
@include('partials.bootstrap-table')
|
||||||
|
|
||||||
@stop
|
@stop
|
||||||
|
|
Loading…
Reference in a new issue