Skip to content

Commit f42fcd2

Browse files
committed
Make the assets tab active by default on locations page
Signed-off-by: snipe <[email protected]>
1 parent c5dd942 commit f42fcd2

File tree

1 file changed

+36
-32
lines changed

1 file changed

+36
-32
lines changed

resources/views/locations/view.blade.php

Lines changed: 36 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,42 @@
157157

158158

159159
<div class="tab-content">
160-
<div class="tab-pane active" id="users">
160+
161+
<div class="tab-pane active" id="assets">
162+
<h2 class="box-title">{{ trans('admin/locations/message.current_location') }}</h2>
163+
164+
<div class="table table-responsive">
165+
@include('partials.asset-bulk-actions')
166+
<table
167+
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
168+
data-cookie-id-table="assetsListingTable"
169+
data-pagination="true"
170+
data-id-table="assetsListingTable"
171+
data-search="true"
172+
data-side-pagination="server"
173+
data-show-columns="true"
174+
data-show-export="true"
175+
data-show-refresh="true"
176+
data-sort-order="asc"
177+
data-toolbar="#assetsBulkEditToolbar"
178+
data-bulk-button-id="#bulkAssetEditButton"
179+
data-bulk-form-id="#assetsBulkForm"
180+
data-click-to-select="true"
181+
id="assetsListingTable"
182+
class="table table-striped snipe-table"
183+
data-url="{{route('api.assets.index', ['location_id' => $location->id]) }}"
184+
data-export-options='{
185+
"fileName": "export-locations-{{ str_slug($location->name) }}-assets-{{ date('Y-m-d') }}",
186+
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
187+
}'>
188+
</table>
189+
190+
</div><!-- /.table-responsive -->
191+
</div><!-- /.tab-pane -->
192+
193+
194+
195+
<div class="tab-pane" id="users">
161196
<h2 class="box-title">{{ trans('general.users') }}</h2>
162197
<div class="table table-responsive">
163198
@include('partials.users-bulk-actions')
@@ -188,37 +223,6 @@ class="table table-striped snipe-table"
188223
</div><!-- /.table-responsive -->
189224
</div><!-- /.tab-pane -->
190225

191-
<div class="tab-pane" id="assets">
192-
<h2 class="box-title">{{ trans('admin/locations/message.current_location') }}</h2>
193-
194-
<div class="table table-responsive">
195-
@include('partials.asset-bulk-actions')
196-
<table
197-
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
198-
data-cookie-id-table="assetsListingTable"
199-
data-pagination="true"
200-
data-id-table="assetsListingTable"
201-
data-search="true"
202-
data-side-pagination="server"
203-
data-show-columns="true"
204-
data-show-export="true"
205-
data-show-refresh="true"
206-
data-sort-order="asc"
207-
data-toolbar="#assetsBulkEditToolbar"
208-
data-bulk-button-id="#bulkAssetEditButton"
209-
data-bulk-form-id="#assetsBulkForm"
210-
data-click-to-select="true"
211-
id="assetsListingTable"
212-
class="table table-striped snipe-table"
213-
data-url="{{route('api.assets.index', ['location_id' => $location->id]) }}"
214-
data-export-options='{
215-
"fileName": "export-locations-{{ str_slug($location->name) }}-assets-{{ date('Y-m-d') }}",
216-
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
217-
}'>
218-
</table>
219-
220-
</div><!-- /.table-responsive -->
221-
</div><!-- /.tab-pane -->
222226

223227
<div class="tab-pane" id="assets_assigned">
224228
<h2 class="box-title">

0 commit comments

Comments
 (0)