mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 15:44:11 -08:00
85 lines
3.6 KiB
PHP
85 lines
3.6 KiB
PHP
@extends('layouts/edit-form', [
|
|
'createText' => 'Create kit',
|
|
'updateText' => 'Update kit',
|
|
'formAction' => ($item) ? route('kits.update', ['kit' => $item->id]) : route('kits.store'),
|
|
])
|
|
|
|
{{-- Page content --}}
|
|
@section('inputFields')
|
|
@include ('partials.forms.edit.name', ['translated_name' => 'Name']) {{-- TODO: trans --}}
|
|
@stop
|
|
|
|
@section('content')
|
|
@parent
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
{{-- <h3 class="box-title"><span>Models </span><a href="{{ route('modal.kit.model', ['kit' => $item->id]) }}" data-toggle="modal" data-target="#createModal" class="btn btn-sm btn-primary"><i class="fa fa-plus icon-white"></i> Append</a></h3> --}}
|
|
<h3 class="box-title"><span>Models </span></h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="table-responsive">
|
|
<table
|
|
data-cookie-id-table="kitModelsTable"
|
|
data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableModels() }}"
|
|
data-pagination="true"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
data-sort-name="name"
|
|
id="kitModelsTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.kits.models.index', $item->id) }}"
|
|
data-export-options='{
|
|
"fileName": "export-kit-models-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
<a href="{{ route('modal.kit.model', ['kit' => $item->id]) }}" data-toggle="modal" data-target="#createModal" class="btn btn-primary pull-right"><i class="fa fa-plus icon-white"></i> Append</a>
|
|
</div>
|
|
</div> <!--.box-body-->
|
|
</div> <!-- /.box.box-default-->
|
|
</div> <!-- .col-md-12-->
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-md-12">
|
|
<div class="box box-default">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">Licenses</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="table-responsive">
|
|
|
|
<table
|
|
data-cookie-id-table="kitLicensesTable"
|
|
data-columns="{{ \App\Presenters\PredefinedKitPresenter::dataTableLicenses() }}"
|
|
data-pagination="true"
|
|
data-search="true"
|
|
data-side-pagination="server"
|
|
data-show-columns="true"
|
|
data-show-export="true"
|
|
data-show-refresh="true"
|
|
data-sort-order="asc"
|
|
data-sort-name="name"
|
|
id="kitLicensesTable"
|
|
class="table table-striped snipe-table"
|
|
data-url="{{ route('api.kits.licenses.index', $item->id) }}"
|
|
data-export-options='{
|
|
"fileName": "export-kit-models-{{ date('Y-m-d') }}",
|
|
"ignoreColumn": ["actions","image","change","checkbox","checkincheckout","icon"]
|
|
}'>
|
|
</table>
|
|
</div>
|
|
</div> <!--.box-body-->
|
|
</div> <!-- /.box.box-default-->
|
|
</div> <!-- .col-md-12-->
|
|
</div>
|
|
@stop
|
|
|
|
@section('moar_scripts')
|
|
@include ('partials.bootstrap-table')
|
|
@stop |