From a4ac53e2e92afa79ab912622e7665a2518b24103 Mon Sep 17 00:00:00 2001 From: snipe Date: Thu, 11 Jan 2018 15:16:09 -0800 Subject: [PATCH] Improved - Using presenters for column headers in location detail --- resources/views/locations/view.blade.php | 49 ++++++------------------ 1 file changed, 11 insertions(+), 38 deletions(-) diff --git a/resources/views/locations/view.blade.php b/resources/views/locations/view.blade.php index 0b6ee1d993..a5821c0d7f 100644 --- a/resources/views/locations/view.blade.php +++ b/resources/views/locations/view.blade.php @@ -30,29 +30,14 @@
- - - - - - - - - - - - - - - - - + data-cookie-id-table="location_usersDetailTable" + data-columns="{{ \App\Presenters\UserPresenter::dataTableLayout() }}"> +
{{ trans('general.id') }}Avatar{{ trans('general.user') }}{{ trans('admin/users/table.title') }}{{ trans('admin/users/table.email') }}{{ trans('admin/users/table.phone') }}{{ trans('admin/users/table.manager') }}{{ trans('general.department') }}{{ trans('table.actions') }}
@@ -68,27 +53,12 @@
- - - - - - - - - - - - - - + data-cookie-id-table="location_assetsDetailTable" + data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}">
{{ trans('general.id') }}{{ trans('admin/hardware/table.image') }}{{ trans('general.name') }}{{ trans('admin/hardware/form.model') }}{{ trans('admin/hardware/form.tag') }}{{ trans('admin/hardware/form.serial') }}{{ trans('general.category') }}{{ trans('general.purchase_cost') }}Checkin/Checkout{{ trans('table.actions') }}
@@ -143,6 +113,9 @@ @stop @section('moar_scripts') -@include ('partials.bootstrap-table', ['exportFile' => 'locations-export', 'search' => true]) +@include ('partials.bootstrap-table', [ + 'exportFile' => 'locations-export', + 'search' => true + ]) @stop