mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
61543f3a04
* Add presenters for models. Move bootstrap table JSON generation to these presenters, which cleans up controllers a lot. Move view specific modifications from the models to the presenters as well. * Fix some issues found by travis and codacy * Fix a few more issues found while testing. * Attempt another acceptance test fix * Try something else * Maybe..
50 lines
1.1 KiB
PHP
Executable file
50 lines
1.1 KiB
PHP
Executable file
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
{{ trans('general.accessories') }}
|
|
@parent
|
|
@stop
|
|
|
|
@section('header_right')
|
|
@can('create', \App\Models\Accessory::class)
|
|
<a href="{{ route('accessories.create') }}" class="btn btn-primary pull-right"> {{ trans('general.create') }}</a>
|
|
@endcan
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
|
|
<div class="box box-default">
|
|
<div class="box-body">
|
|
<div class="table-responsive">
|
|
<table
|
|
name="accessories"
|
|
class="table table-striped snipe-table"
|
|
id="table"
|
|
data-url="{{route('api.accessories.list') }}"
|
|
data-cookie="true"
|
|
data-click-to-select="true"
|
|
data-cookie-id-table="accessoriesTable-{{ config('version.hash_version') }}">
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@section('moar_scripts')
|
|
@include ('partials.bootstrap-table', [
|
|
'exportFile' => 'accessories-export',
|
|
'search' => true,
|
|
'columns' => \App\Presenters\AccessoryPresenter::dataTableLayout()
|
|
])
|
|
@stop
|
|
|
|
|
|
@stop
|