Fixed switchable attributes on table headers

This commit is contained in:
snipe 2018-01-11 13:17:55 -08:00
parent 90db97b980
commit 500aa37e3c
2 changed files with 12 additions and 10 deletions

View file

@ -60,12 +60,11 @@
data-url="{{ route('api.accessories.checkedout', $accessory->id) }}" data-url="{{ route('api.accessories.checkedout', $accessory->id) }}"
data-cookie="true" data-cookie="true"
data-click-to-select="true" data-click-to-select="true"
data-cookie-id-table="accessoryUsersTable" data-cookie-id-table="accessoryUsersTable">
>
<thead> <thead>
<tr> <tr>
<th data-switchable="false" data-searchable="false" data-formatter="usersLinkFormatter" data-sortable="false" data-field="name">{{ trans('general.user') }}</th> <th data-searchable="false" data-formatter="usersLinkFormatter" data-sortable="false" data-field="name">{{ trans('general.user') }}</th>
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="actions" data-formatter="accessoriesInOutFormatter">{{ trans('table.actions') }}</th> <th data-searchable="false" data-sortable="false" data-field="actions" data-formatter="accessoriesInOutFormatter">{{ trans('table.actions') }}</th>
</tr> </tr>
</thead> </thead>
</table> </table>
@ -91,5 +90,9 @@
@stop @stop
@section('moar_scripts') @section('moar_scripts')
@include ('partials.bootstrap-table', ['exportFile' => 'accessory' . $accessory->name . '-export', 'search' => false]) @include ('partials.bootstrap-table', [
'exportFile' => 'accessory' .
$accessory->name . '-export',
'search' => 'false'
])
@stop @stop

View file

@ -38,13 +38,12 @@
data-url="{{route('api.consumables.showUsers', $consumable->id)}}" data-url="{{route('api.consumables.showUsers', $consumable->id)}}"
data-cookie="true" data-cookie="true"
data-click-to-select="true" data-click-to-select="true"
data-cookie-id-table="consumableDetailTable-{{ config('version.hash_version') }}" data-cookie-id-table="consumableDetailTable-{{ config('version.hash_version') }}">
>
<thead> <thead>
<tr> <tr>
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="name">{{ trans('general.user') }}</th> <th data-searchable="false" data-sortable="false" data-field="name">{{ trans('general.user') }}</th>
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="created_at">{{ trans('general.date') }}</th> <th data-searchable="false" data-sortable="false" data-field="created_at">{{ trans('general.date') }}</th>
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="admin">{{ trans('general.admin') }}</th> <th data-searchable="false" data-sortable="false" data-field="admin">{{ trans('general.admin') }}</th>
</tr> </tr>
</thead> </thead>
</table> </table>