2018-10-02 20:03:08 +02:00
|
|
|
@extends('layout.default')
|
|
|
|
|
|
2019-05-01 20:19:18 +02:00
|
|
|
@section('title', $__t('Equipment'))
|
2018-10-02 20:03:08 +02:00
|
|
|
@section('activeNav', 'equipment')
|
|
|
|
|
@section('viewJsName', 'equipment')
|
2020-10-14 17:48:37 +02:00
|
|
|
@section('DbChangedHandlingEnabledForPage', 'false')
|
2018-10-02 20:03:08 +02:00
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
<div class="row">
|
2018-10-03 19:05:00 +02:00
|
|
|
<div class="col-xs-12 col-md-4 pb-3">
|
2020-10-31 18:37:10 +01:00
|
|
|
<div class="title-related-links border-bottom mb-2 py-1">
|
|
|
|
|
<h2 class="title">@yield('title')</h2>
|
2020-11-07 14:53:45 +01:00
|
|
|
<div class="float-right">
|
|
|
|
|
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
|
|
|
|
|
type="button"
|
|
|
|
|
data-toggle="collapse"
|
|
|
|
|
data-target="#table-filter-row">
|
|
|
|
|
<i class="fas fa-filter"></i>
|
|
|
|
|
</button>
|
|
|
|
|
<button class="btn btn-outline-dark d-md-none mt-2 order-1 order-md-3"
|
|
|
|
|
type="button"
|
|
|
|
|
data-toggle="collapse"
|
|
|
|
|
data-target="#related-links">
|
|
|
|
|
<i class="fas fa-ellipsis-v"></i>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="related-links collapse d-md-flex order-2 width-xs-sm-100"
|
|
|
|
|
id="related-links">
|
|
|
|
|
<a class="btn btn-primary responsive-button m-1 mt-md-0 mb-md-0 float-right"
|
2020-08-31 20:32:50 +02:00
|
|
|
href="{{ $U('/equipment/new') }}">
|
2020-04-19 08:51:02 -04:00
|
|
|
{{ $__t('Add') }}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-10-31 18:37:10 +01:00
|
|
|
|
2020-11-07 14:53:45 +01:00
|
|
|
<div class="row collapse d-md-flex"
|
|
|
|
|
id="table-filter-row">
|
2020-10-31 18:37:10 +01:00
|
|
|
<div class="col">
|
|
|
|
|
<div class="input-group">
|
|
|
|
|
<div class="input-group-prepend">
|
|
|
|
|
<span class="input-group-text"><i class="fas fa-search"></i></span>
|
|
|
|
|
</div>
|
|
|
|
|
<input type="text"
|
|
|
|
|
id="search"
|
|
|
|
|
class="form-control"
|
|
|
|
|
placeholder="{{ $__t('Search') }}">
|
|
|
|
|
</div>
|
2020-04-19 08:51:02 -04:00
|
|
|
</div>
|
2020-11-07 14:53:45 +01:00
|
|
|
<div class="col">
|
|
|
|
|
<div class="float-right">
|
|
|
|
|
<a id="clear-filter-button"
|
|
|
|
|
class="btn btn-sm btn-outline-info"
|
|
|
|
|
href="#">
|
|
|
|
|
{{ $__t('Clear filter') }}
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2020-04-19 08:51:02 -04:00
|
|
|
</div>
|
2018-10-02 20:03:08 +02:00
|
|
|
|
2020-08-31 20:32:50 +02:00
|
|
|
<table id="equipment-table"
|
2020-11-08 19:51:56 +01:00
|
|
|
class="table table-sm table-striped nowrap w-100">
|
2018-10-02 20:03:08 +02:00
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2020-11-11 22:28:05 +01:00
|
|
|
<th class="border-right"><a class="text-muted change-table-columns-visibility-button"
|
|
|
|
|
data-toggle="tooltip"
|
2020-11-11 21:11:17 +01:00
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Hide/view columns') }}"
|
|
|
|
|
data-table-selector="#equipment-table"
|
|
|
|
|
href="#"><i class="fas fa-eye"></i></a>
|
|
|
|
|
</th>
|
2019-05-01 20:19:18 +02:00
|
|
|
<th>{{ $__t('Name') }}</th>
|
2019-04-23 09:06:18 +02:00
|
|
|
|
|
|
|
|
@include('components.userfields_thead', array(
|
2020-08-31 20:32:50 +02:00
|
|
|
'userfields' => $userfields
|
2019-04-23 09:06:18 +02:00
|
|
|
))
|
2020-08-29 16:41:27 +02:00
|
|
|
|
2018-10-02 20:03:08 +02:00
|
|
|
</tr>
|
|
|
|
|
</thead>
|
2019-01-05 20:06:35 +01:00
|
|
|
<tbody class="d-none">
|
2018-10-02 20:03:08 +02:00
|
|
|
@foreach($equipment as $equipmentItem)
|
|
|
|
|
<tr data-equipment-id="{{ $equipmentItem->id }}">
|
2020-11-08 19:51:56 +01:00
|
|
|
<td class="fit-content border-right">
|
|
|
|
|
<a class="btn btn-info btn-sm hide-when-embedded hide-on-fullscreen-card"
|
2020-11-12 21:35:10 +01:00
|
|
|
href="{{ $U('/equipment/') }}{{ $equipmentItem->id }}"
|
|
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Edit this item') }}">
|
2020-11-08 19:51:56 +01:00
|
|
|
<i class="fas fa-edit"></i>
|
|
|
|
|
</a>
|
|
|
|
|
<a class="btn btn-sm btn-danger hide-when-embedded hide-on-fullscreen-card equipment-delete-button"
|
|
|
|
|
href="#"
|
|
|
|
|
data-equipment-id="{{ $equipmentItem->id }}"
|
2020-11-12 21:35:10 +01:00
|
|
|
data-equipment-name="{{ $equipmentItem->name }}"
|
|
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Delete this item') }}">
|
2020-11-08 19:51:56 +01:00
|
|
|
<i class="fas fa-trash"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</td>
|
2018-10-02 20:03:08 +02:00
|
|
|
<td>
|
|
|
|
|
{{ $equipmentItem->name }}
|
|
|
|
|
</td>
|
2019-04-23 09:06:18 +02:00
|
|
|
|
|
|
|
|
@include('components.userfields_tbody', array(
|
2020-08-31 20:32:50 +02:00
|
|
|
'userfields' => $userfields,
|
|
|
|
|
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $equipmentItem->id)
|
2019-04-23 09:06:18 +02:00
|
|
|
))
|
|
|
|
|
|
2018-10-02 20:03:08 +02:00
|
|
|
</tr>
|
|
|
|
|
@endforeach
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
|
2018-10-03 19:05:00 +02:00
|
|
|
<div class="col-xs-12 col-md-8">
|
2020-11-08 19:51:56 +01:00
|
|
|
<ul class="nav nav-tabs grocy-tabs">
|
2018-10-03 16:11:39 +02:00
|
|
|
<li class="nav-item">
|
2020-08-31 20:32:50 +02:00
|
|
|
<a class="nav-link active"
|
|
|
|
|
data-toggle="tab"
|
|
|
|
|
href="#instruction-manual-tab">{{ $__t('Instruction manual') }}</a>
|
2018-10-03 16:11:39 +02:00
|
|
|
</li>
|
|
|
|
|
<li class="nav-item">
|
2020-08-31 20:32:50 +02:00
|
|
|
<a class="nav-link"
|
|
|
|
|
data-toggle="tab"
|
|
|
|
|
href="#description-tab">{{ $__t('Notes') }}</a>
|
2018-10-03 16:11:39 +02:00
|
|
|
</li>
|
|
|
|
|
</ul>
|
2020-11-08 19:51:56 +01:00
|
|
|
<div class="tab-content grocy-tabs">
|
2020-08-31 20:32:50 +02:00
|
|
|
<div class="tab-pane fade show active"
|
|
|
|
|
id="instruction-manual-tab">
|
|
|
|
|
<div id="selectedEquipmentInstructionManualCard"
|
|
|
|
|
class="card">
|
2020-01-24 22:05:08 +01:00
|
|
|
<div class="card-header card-header-fullscreen">
|
2020-11-08 19:51:56 +01:00
|
|
|
<span class="selected-equipment-name"></span>
|
2020-08-31 20:32:50 +02:00
|
|
|
<a id="selectedEquipmentInstructionManualToggleFullscreenButton"
|
2020-11-17 21:01:45 +01:00
|
|
|
class="btn btn-sm btn-outline-secondary py-0 float-right mr-1"
|
2020-08-31 20:32:50 +02:00
|
|
|
href="#"
|
|
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Expand to fullscreen') }}">
|
2018-10-03 16:40:40 +02:00
|
|
|
<i class="fas fa-expand-arrows-alt"></i>
|
|
|
|
|
</a>
|
2020-11-17 21:01:45 +01:00
|
|
|
<a id="selectedEquipmentInstructionManualDownloadButton"
|
|
|
|
|
class="btn btn-sm btn-outline-secondary py-0 float-right mr-1"
|
|
|
|
|
href="#"
|
|
|
|
|
target="_blank"
|
|
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Download file') }}">
|
|
|
|
|
<i class="fas fa-file-download"></i>
|
|
|
|
|
</a>
|
2018-10-03 16:40:40 +02:00
|
|
|
</div>
|
2018-10-03 18:04:46 +02:00
|
|
|
<div class="card-body py-0 px-0">
|
2020-08-31 20:32:50 +02:00
|
|
|
<p id="selected-equipment-has-no-instruction-manual-hint"
|
|
|
|
|
class="text-muted font-italic d-none pt-3 pl-3">{{ $__t('The selected equipment has no instruction manual') }}</p>
|
|
|
|
|
<embed id="selected-equipment-instruction-manual"
|
|
|
|
|
class="embed-responsive embed-responsive-4by3"
|
|
|
|
|
src=""
|
|
|
|
|
type="application/pdf">
|
2018-10-03 16:40:40 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-03 16:11:39 +02:00
|
|
|
</div>
|
2020-08-31 20:32:50 +02:00
|
|
|
<div class="tab-pane fade"
|
|
|
|
|
id="description-tab">
|
|
|
|
|
<div id="selectedEquipmentDescriptionCard"
|
|
|
|
|
class="card">
|
2020-01-24 22:05:08 +01:00
|
|
|
<div class="card-header card-header-fullscreen">
|
2020-11-08 19:51:56 +01:00
|
|
|
<span class="selected-equipment-name"></span>
|
2020-08-31 20:32:50 +02:00
|
|
|
<a id="selectedEquipmentDescriptionToggleFullscreenButton"
|
|
|
|
|
class="btn btn-sm btn-outline-secondary py-0 float-right"
|
|
|
|
|
href="#"
|
|
|
|
|
data-toggle="tooltip"
|
|
|
|
|
title="{{ $__t('Expand to fullscreen') }}">
|
2018-10-03 16:40:40 +02:00
|
|
|
<i class="fas fa-expand-arrows-alt"></i>
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="card-body">
|
2020-08-31 20:32:50 +02:00
|
|
|
<div id="description-tab-content"
|
|
|
|
|
class="mb-0"></div>
|
2018-10-03 16:40:40 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-03 16:11:39 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2018-10-02 20:03:08 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
@stop
|