2018-04-11 19:49:35 +02:00
|
|
|
@extends('layout.default')
|
|
|
|
|
2019-05-01 20:19:18 +02:00
|
|
|
@section('title', $__t('Quantity units'))
|
2018-04-12 21:13:38 +02:00
|
|
|
@section('activeNav', 'quantityunits')
|
|
|
|
@section('viewJsName', 'quantityunits')
|
|
|
|
|
2018-04-11 19:49:35 +02:00
|
|
|
@section('content')
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
2020-04-19 08:51:02 -04:00
|
|
|
<div class="title-related-links">
|
|
|
|
<h2 class="title">@yield('title')</h2>
|
|
|
|
<div class="related-links">
|
|
|
|
<a class="btn btn-outline-secondary" href="{{ $U('/userfields?entity=quantity_units') }}">
|
|
|
|
{{ $__t('Configure userfields') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2018-07-10 20:37:13 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2020-04-19 08:51:02 -04:00
|
|
|
<hr>
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="row mt-3">
|
2020-04-19 08:51:02 -04:00
|
|
|
<div class="col-xs-12 col-md-2 col-xl-1">
|
|
|
|
<a class="btn btn-primary btn-sm responsive-button w-100 mb-3" href="{{ $U('/quantityunit/new') }}">
|
|
|
|
{{ $__t('Add') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row">
|
2018-07-11 19:43:05 +02:00
|
|
|
<div class="col-xs-12 col-md-6 col-xl-3">
|
2020-04-19 08:51:02 -04:00
|
|
|
<div class="input-group mb-3">
|
|
|
|
<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>
|
2018-07-09 19:27:22 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="row">
|
|
|
|
<div class="col">
|
|
|
|
<table id="quantityunits-table" class="table table-sm table-striped dt-responsive">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2019-03-09 10:49:26 +01:00
|
|
|
<th class="border-right"></th>
|
2019-05-01 20:19:18 +02:00
|
|
|
<th>{{ $__t('Name') }}</th>
|
|
|
|
<th>{{ $__t('Description') }}</th>
|
2019-04-22 22:16:35 +02:00
|
|
|
|
|
|
|
@include('components.userfields_thead', array(
|
|
|
|
'userfields' => $userfields
|
|
|
|
))
|
2018-07-10 20:37:13 +02:00
|
|
|
</tr>
|
|
|
|
</thead>
|
2019-01-05 20:06:35 +01:00
|
|
|
<tbody class="d-none">
|
2018-07-10 20:37:13 +02:00
|
|
|
@foreach($quantityunits as $quantityunit)
|
|
|
|
<tr>
|
2019-03-09 10:49:26 +01:00
|
|
|
<td class="fit-content border-right">
|
2018-07-10 20:37:13 +02:00
|
|
|
<a class="btn btn-info btn-sm" href="{{ $U('/quantityunit/') }}{{ $quantityunit->id }}">
|
2018-07-11 19:43:05 +02:00
|
|
|
<i class="fas fa-edit"></i>
|
2018-07-10 20:37:13 +02:00
|
|
|
</a>
|
|
|
|
<a class="btn btn-danger btn-sm quantityunit-delete-button" href="#" data-quantityunit-id="{{ $quantityunit->id }}" data-quantityunit-name="{{ $quantityunit->name }}">
|
2018-07-11 19:43:05 +02:00
|
|
|
<i class="fas fa-trash"></i>
|
2018-07-10 20:37:13 +02:00
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $quantityunit->name }}
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
{{ $quantityunit->description }}
|
|
|
|
</td>
|
2019-04-22 22:16:35 +02:00
|
|
|
|
|
|
|
@include('components.userfields_tbody', array(
|
|
|
|
'userfields' => $userfields,
|
|
|
|
'userfieldValues' => FindAllObjectsInArrayByPropertyValue($userfieldValues, 'object_id', $quantityunit->id)
|
|
|
|
))
|
|
|
|
|
2018-07-10 20:37:13 +02:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2017-04-15 23:16:20 +02:00
|
|
|
</div>
|
2018-04-11 19:49:35 +02:00
|
|
|
@stop
|