mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 09:39:57 +00:00
Improve journal pages loading time (new date range filter) Various small style adjustments (meal plan page and others) Pulled German translations from Transifex Show the shopping list total value (closes #1309) Make it possible to copy recipes (closes #714) Implemented optional "auto decimal separator for price inputs" (closes #1345) Removed table grouped column fixed order restriction (closes #1402) Don't filter out style, class, id attributes of html text (closes #1298) Added product picture as column on the stock overview page (closes #1283) Added grocycodes also for chores and batteries (+ camera barcode scanning for /choretracking and /batterytracking, this now closes #221)
60 lines
1.5 KiB
PHP
60 lines
1.5 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title', $__t('Battery tracking'))
|
|
@section('activeNav', 'batterytracking')
|
|
@section('viewJsName', 'batterytracking')
|
|
|
|
@section('content')
|
|
<div class="row">
|
|
<div class="col-12 col-md-6 col-xl-4 pb-3">
|
|
<h2 class="title">@yield('title')</h2>
|
|
|
|
<hr class="my-2">
|
|
|
|
<form id="batterytracking-form"
|
|
novalidate>
|
|
|
|
<div class="form-group">
|
|
<label class="w-100"
|
|
for="battery_id">
|
|
{{ $__t('Battery') }}
|
|
<i id="barcode-lookup-hint"
|
|
class="fas fa-barcode float-right mt-1"></i>
|
|
</label>
|
|
<select class="form-control combobox barcodescanner-input"
|
|
id="battery_id"
|
|
name="battery_id"
|
|
required
|
|
data-target="@batterypicker">
|
|
<option value=""></option>
|
|
@foreach($batteries as $battery)
|
|
<option value="{{ $battery->id }}">{{ $battery->name }}</option>
|
|
@endforeach
|
|
</select>
|
|
<div class="invalid-feedback">{{ $__t('You have to select a battery') }}</div>
|
|
</div>
|
|
|
|
@include('components.datetimepicker', array(
|
|
'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')
|
|
))
|
|
|
|
<button id="save-batterytracking-button"
|
|
class="btn btn-success">{{ $__t('OK') }}</button>
|
|
|
|
</form>
|
|
</div>
|
|
|
|
<div class="col-12 col-md-6 col-xl-4">
|
|
@include('components.batterycard')
|
|
</div>
|
|
</div>
|
|
|
|
@include('components.barcodescanner')
|
|
@stop
|