mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
3744a68daf
* Added CSS for table toolbar * Use maintenances API for table listings * NIcer layout for allowed_columns in maintenances API * Fixed #5014 - bootstrap cookie issues * Fixed #5015 - bug when saving settings * Refactored datatable code to use data attributes * Updated dashboard with new table code * Added - Order by group user count * Updated groups to use new table attributes * New license listing table code * More bootstrap table implementations * More BS table refactoring * Improved bootstrap assigned assets * New bootstrap for reports * Misc BS fixes * FIxed small issue with asset history display * Removed multisort option * JS refactor
160 lines
6 KiB
PHP
160 lines
6 KiB
PHP
@extends('layouts/default')
|
|
|
|
{{-- Page title --}}
|
|
@section('title')
|
|
|
|
{{ $manufacturer->name }}
|
|
{{ trans('general.manufacturer') }}
|
|
@parent
|
|
@stop
|
|
|
|
@section('header_right')
|
|
<div class="btn-group pull-right">
|
|
<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">{{ trans('button.actions') }}
|
|
<span class="caret"></span>
|
|
</button>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="{{ route('manufacturers.edit', $manufacturer->id) }}">{{ trans('admin/manufacturers/table.update') }}</a></li>
|
|
<li><a href="{{ route('manufacturers.create') }}">{{ trans('admin/manufacturers/table.create') }}</a></li>
|
|
</ul>
|
|
</div>
|
|
@stop
|
|
|
|
{{-- Page content --}}
|
|
@section('content')
|
|
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="nav-tabs-custom">
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li class="active">
|
|
<a href="#assets" data-toggle="tab">Assets</a>
|
|
</li>
|
|
<li>
|
|
<a href="#licenses" data-toggle="tab">Licenses</a>
|
|
</li>
|
|
<li>
|
|
<a href="#accessories" data-toggle="tab">Accessories</a>
|
|
</li>
|
|
<li>
|
|
<a href="#consumables" data-toggle="tab">Consumables</a>
|
|
</li>
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
<div class="tab-pane fade in active" id="assets">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\AssetPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="assetsListingTable"
|
|
data-pagination="true"
|
|
data-id-table="assetsListingTable"
|
|
data-search="true"
|
|
data-show-footer="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="assetsListingTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.assets.index', ['manufacturer_id' => $manufacturer->id, 'itemtype' => 'assets']) }}"
|
|
data-export-options='{
|
|
"fileName": "export-manufacturers-{{ str_slug($manufacturer->name) }}-assets-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
</div> <!-- /.tab-pane assets -->
|
|
|
|
<div class="tab-pane fade" id="licenses">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\LicensePresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="licensesTable"
|
|
data-pagination="true"
|
|
data-id-table="licensesTable"
|
|
data-search="true"
|
|
data-show-footer="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="licensesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.licenses.index', ['manufacturer_id' => $manufacturer->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-manufacturers-{{ str_slug($manufacturer->name) }}-licenses-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
|
|
</div><!-- /.tab-pan licenses-->
|
|
|
|
<div class="tab-pane fade" id="accessories">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\AccessoryPresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="accessoriesTable"
|
|
data-pagination="true"
|
|
data-id-table="accessoriesTable"
|
|
data-search="true"
|
|
data-show-footer="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="accessoriesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.accessories.index', ['manufacturer_id' => $manufacturer->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-manufacturers-{{ str_slug($manufacturer->name) }}-accessories-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
|
|
</div> <!-- /.tab-pan accessories-->
|
|
|
|
<div class="tab-pane fade" id="consumables">
|
|
|
|
<table
|
|
data-columns="{{ \App\Presenters\ConsumablePresenter::dataTableLayout() }}"
|
|
data-cookie-id-table="consumablesTable"
|
|
data-pagination="true"
|
|
data-id-table="consumablesTable"
|
|
data-search="true"
|
|
data-show-footer="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
id="consumablesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.consumables.index', ['manufacturer_id' => $manufacturer->id]) }}"
|
|
data-export-options='{
|
|
"fileName": "export-manufacturers-{{ str_slug($manufacturer->name) }}-consumabled-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
|
|
|
|
|
|
</div> <!-- /.tab-pan consumables-->
|
|
|
|
</div> <!-- /.tab-content -->
|
|
</div> <!-- /.nav-tabs-custom -->
|
|
</div><!-- /. col-md-12 -->
|
|
</div> <!-- /.row -->
|
|
@stop
|
|
|
|
@section('moar_scripts')
|
|
@include ('partials.bootstrap-table', ['exportFile' => 'manufacturer' . $manufacturer->name . '-export', 'search' => false])
|
|
|
|
@stop
|