2023-05-21 10:56:38 +02:00
|
|
|
@php require_frontend_packages(['bootstrap-combobox']); @endphp
|
|
|
|
|
|
2018-04-11 19:49:35 +02:00
|
|
|
@extends('layout.default')
|
|
|
|
|
|
2019-05-01 20:19:18 +02:00
|
|
|
@section('title', $__t('Battery tracking'))
|
2018-04-12 21:13:38 +02:00
|
|
|
|
2018-04-11 19:49:35 +02:00
|
|
|
@section('content')
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="row">
|
2021-06-24 22:46:47 +02:00
|
|
|
<div class="col-12 col-md-6 col-xl-4 pb-3">
|
2020-04-19 08:51:02 -04:00
|
|
|
<h2 class="title">@yield('title')</h2>
|
2020-10-31 18:37:10 +01:00
|
|
|
|
2020-11-08 15:09:10 +01:00
|
|
|
<hr class="my-2">
|
2020-10-31 18:37:10 +01:00
|
|
|
|
2020-08-31 20:32:50 +02:00
|
|
|
<form id="batterytracking-form"
|
|
|
|
|
novalidate>
|
2018-07-10 20:37:13 +02:00
|
|
|
|
|
|
|
|
<div class="form-group">
|
2021-07-13 19:29:23 +02:00
|
|
|
<label class="w-100"
|
|
|
|
|
for="battery_id">
|
|
|
|
|
{{ $__t('Battery') }}
|
|
|
|
|
<i id="barcode-lookup-hint"
|
2022-04-04 20:10:29 +02:00
|
|
|
class="fa-solid fa-barcode float-right mt-1"></i>
|
2021-07-13 19:29:23 +02:00
|
|
|
</label>
|
|
|
|
|
<select class="form-control combobox barcodescanner-input"
|
2020-08-31 20:32:50 +02:00
|
|
|
id="battery_id"
|
|
|
|
|
name="battery_id"
|
2021-07-13 19:29:23 +02:00
|
|
|
required
|
|
|
|
|
data-target="@batterypicker">
|
2018-07-10 20:37:13 +02:00
|
|
|
<option value=""></option>
|
|
|
|
|
@foreach($batteries as $battery)
|
2020-08-31 20:32:50 +02:00
|
|
|
<option value="{{ $battery->id }}">{{ $battery->name }}</option>
|
2018-07-10 20:37:13 +02:00
|
|
|
@endforeach
|
|
|
|
|
</select>
|
2019-05-01 20:19:18 +02:00
|
|
|
<div class="invalid-feedback">{{ $__t('You have to select a battery') }}</div>
|
2017-11-05 12:41:00 +01:00
|
|
|
</div>
|
|
|
|
|
|
2018-07-11 19:43:05 +02:00
|
|
|
@include('components.datetimepicker', array(
|
2020-08-31 20:32:50 +02:00
|
|
|
'id' => 'tracked_time',
|
|
|
|
|
'label' => 'Tracked time',
|
|
|
|
|
'format' => 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
|
'initWithNow' => true,
|
|
|
|
|
'limitEndToNow' => true,
|
|
|
|
|
'limitStartToNow' => false,
|
|
|
|
|
'invalidFeedback' => $__t('This can only be before now')
|
2018-07-11 19:43:05 +02:00
|
|
|
))
|
2017-11-05 12:41:00 +01:00
|
|
|
|
2020-08-31 20:32:50 +02:00
|
|
|
<button id="save-batterytracking-button"
|
|
|
|
|
class="btn btn-success">{{ $__t('OK') }}</button>
|
2018-07-10 20:37:13 +02:00
|
|
|
|
|
|
|
|
</form>
|
|
|
|
|
</div>
|
2017-11-05 12:41:00 +01:00
|
|
|
|
2021-06-24 22:46:47 +02:00
|
|
|
<div class="col-12 col-md-6 col-xl-4">
|
2018-07-10 20:37:13 +02:00
|
|
|
@include('components.batterycard')
|
|
|
|
|
</div>
|
2017-11-05 12:41:00 +01:00
|
|
|
</div>
|
2021-07-13 19:29:23 +02:00
|
|
|
|
|
|
|
|
@include('components.barcodescanner')
|
2018-04-11 19:49:35 +02:00
|
|
|
@stop
|