add shifts column to Location index view

This commit is contained in:
Xu 2024-03-24 15:36:35 +01:00 committed by Igor Scheller
parent 865ffe5e5a
commit 541789ae27
2 changed files with 7 additions and 1 deletions

View File

@ -33,6 +33,7 @@
<th>{{ __('general.name') }}</th> <th>{{ __('general.name') }}</th>
<th>{{ __('general.dect') }}</th> <th>{{ __('general.dect') }}</th>
<th>{{ __('location.map_url') }}</th> <th>{{ __('location.map_url') }}</th>
<th>{{ __('general.shifts') }}</th>
<th></th> <th></th>
</tr> </tr>
</thead> </thead>
@ -51,6 +52,8 @@
<td>{{ m.iconBool(location.map_url) }}</td> <td>{{ m.iconBool(location.map_url) }}</td>
<td>{{ m.iconBool(location.shifts.count) }}</td>
<td> <td>
<div class="d-flex ms-auto"> <div class="d-flex ms-auto">

View File

@ -42,7 +42,10 @@ class LocationsController extends BaseController
return $this->response->withView( return $this->response->withView(
'admin/locations/index', 'admin/locations/index',
['locations' => $locations, 'is_index' => true] [
'locations' => $locations,
'is_index' => true,
]
); );
} }