mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-24 05:04:07 -08:00
Make eol, notes sortable on asset model
This commit is contained in:
parent
ae540af2a9
commit
edca6ad19d
|
@ -26,7 +26,7 @@ class AssetModelsController extends Controller
|
|||
public function index(Request $request)
|
||||
{
|
||||
$this->authorize('view', AssetModel::class);
|
||||
$allowed_columns = ['id','name','created_at'];
|
||||
$allowed_columns = ['id','image','name','model_number','eol','notes','created_at'];
|
||||
|
||||
$assetmodels = AssetModel::select(['id','image','name','model_number','eol','notes','created_at'])
|
||||
->with('category','depreciation', 'manufacturer','fieldset')
|
||||
|
|
|
@ -46,7 +46,7 @@
|
|||
<th data-sortable="false" data-field="category">{{ trans('general.category') }}</th>
|
||||
<th data-sortable="true" data-field="eol">{{ trans('general.eol') }}</th>
|
||||
<th data-sortable="false" data-field="fieldset">{{ trans('admin/models/general.fieldset') }}</th>
|
||||
<th data-sortable="false" data-field="notes">{{ trans('general.notes') }}</th>
|
||||
<th data-sortable="true" data-field="notes">{{ trans('general.notes') }}</th>
|
||||
<th data-switchable="false" data-searchable="false" data-sortable="false" data-field="actions">{{ trans('table.actions') }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
|
|
Loading…
Reference in a new issue