mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
API-ify the managed locations tab in user view
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
50b841d54d
commit
0383938536
|
@ -1015,23 +1015,36 @@
|
||||||
</div><!-- /.tab-pane -->
|
</div><!-- /.tab-pane -->
|
||||||
|
|
||||||
<div class="tab-pane" id="managed">
|
<div class="tab-pane" id="managed">
|
||||||
<div class="table-responsive">
|
|
||||||
<table class="table display table-striped">
|
@include('partials.locations-bulk-actions')
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th class="col-md-8">{{ trans('general.name') }}</th>
|
<table
|
||||||
<th class="col-md-4">{{ trans('general.date') }}</th>
|
data-columns="{{ \App\Presenters\LocationPresenter::dataTableLayout() }}"
|
||||||
</tr>
|
data-cookie-id-table="locationTable"
|
||||||
</thead>
|
data-click-to-select="true"
|
||||||
<tbody>
|
data-pagination="true"
|
||||||
@foreach ($user->managedLocations as $location)
|
data-id-table="locationTable"
|
||||||
<tr>
|
data-toolbar="#locationsBulkEditToolbar"
|
||||||
<td>{!! $location->present()->nameUrl() !!}</td>
|
data-bulk-button-id="#bulkLocationsEditButton"
|
||||||
<td>{{ $location->created_at }}</td>
|
data-bulk-form-id="#locationsBulkForm"
|
||||||
</tr>
|
data-search="true"
|
||||||
@endforeach
|
data-show-footer="true"
|
||||||
</tbody>
|
data-side-pagination="server"
|
||||||
|
data-show-columns="true"
|
||||||
|
data-show-fullscreen="true"
|
||||||
|
data-show-export="true"
|
||||||
|
data-show-refresh="true"
|
||||||
|
data-sort-order="asc"
|
||||||
|
id="locationTable"
|
||||||
|
class="table table-striped snipe-table"
|
||||||
|
data-url="{{ route('api.locations.index', ['manager_id' => $user->id]) }}"
|
||||||
|
data-export-options='{
|
||||||
|
"fileName": "export-locations-{{ date('Y-m-d') }}",
|
||||||
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
||||||
|
}'>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div><!-- /consumables-tab -->
|
</div><!-- /consumables-tab -->
|
||||||
</div><!-- /.tab-content -->
|
</div><!-- /.tab-content -->
|
||||||
|
|
Loading…
Reference in a new issue