From eac025263b160b9bebc19f12157cf817735d7914 Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 18 Jan 2017 04:16:25 -0800 Subject: [PATCH] Basic hardware bootstrap table formatter --- resources/views/hardware/index.blade.php | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/resources/views/hardware/index.blade.php b/resources/views/hardware/index.blade.php index 37d7533ef9..2d3ea8211d 100755 --- a/resources/views/hardware/index.blade.php +++ b/resources/views/hardware/index.blade.php @@ -104,10 +104,10 @@ @endforeach - {{ trans('general.created_at') }} + {{ trans('general.created_at') }} {{ trans('admin/hardware/table.change') }} - {{ trans('table.actions') }} + {{ trans('table.actions') }} @@ -144,5 +144,21 @@ checkForChecked(); }); }); + + function actionsFormatter(value, row) { + return ' ' + + '' + + ''; + + } + + function createdAtFormatter(value, row) { + if ((value) && (value.date)) { + return value.date; + } + } + @stop