2018-04-11 19:49:35 +02:00
|
|
|
@extends('layout.default')
|
|
|
|
|
2018-04-16 19:11:32 +02:00
|
|
|
@section('title', $L('Battery tracking'))
|
2018-04-12 21:13:38 +02:00
|
|
|
@section('activeNav', 'batterytracking')
|
|
|
|
@section('viewJsName', 'batterytracking')
|
|
|
|
|
2018-04-11 19:49:35 +02:00
|
|
|
@section('content')
|
2018-07-10 20:37:13 +02:00
|
|
|
<div class="row">
|
2018-07-12 19:12:31 +02:00
|
|
|
<div class="col-xs-12 col-md-6 col-xl-4 pb-3">
|
2018-07-10 20:37:13 +02:00
|
|
|
<h1>@yield('title')</h1>
|
|
|
|
|
2018-07-11 19:43:05 +02:00
|
|
|
<form id="batterytracking-form" novalidate>
|
2018-07-10 20:37:13 +02:00
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="battery_id">{{ $L('Battery') }}</label>
|
|
|
|
<select class="form-control combobox" id="battery_id" name="battery_id" required>
|
|
|
|
<option value=""></option>
|
|
|
|
@foreach($batteries as $battery)
|
|
|
|
<option value="{{ $battery->id }}">{{ $battery->name }}</option>
|
|
|
|
@endforeach
|
|
|
|
</select>
|
2018-07-11 19:43:05 +02:00
|
|
|
<div class="invalid-feedback">{{ $L('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(
|
|
|
|
'id' => 'tracked_time',
|
2018-07-12 19:12:31 +02:00
|
|
|
'label' => 'Tracked time',
|
|
|
|
'format' => 'YYYY-MM-DD HH:mm:ss',
|
|
|
|
'initWithNow' => true,
|
|
|
|
'limitEndToNow' => true,
|
|
|
|
'limitStartToNow' => false,
|
|
|
|
'invalidFeedback' => $L('This can only be before now')
|
2018-07-11 19:43:05 +02:00
|
|
|
))
|
2017-11-05 12:41:00 +01:00
|
|
|
|
2018-09-29 13:41:56 +02:00
|
|
|
<button id="save-batterytracking-button" class="btn btn-success">{{ $L('OK') }}</button>
|
2018-07-10 20:37:13 +02:00
|
|
|
|
|
|
|
</form>
|
|
|
|
</div>
|
2017-11-05 12:41:00 +01:00
|
|
|
|
2018-07-11 19:43:05 +02:00
|
|
|
<div class="col-xs-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>
|
2018-04-11 19:49:35 +02:00
|
|
|
@stop
|