mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
46 lines
1.3 KiB
PHP
46 lines
1.3 KiB
PHP
@extends('layout.default')
|
|
|
|
@section('title', $L('Battery tracking'))
|
|
@section('activeNav', 'batterytracking')
|
|
@section('viewJsName', 'batterytracking')
|
|
|
|
@section('content')
|
|
<div class="col-sm-3 col-sm-offset-3 col-md-3 col-md-offset-2">
|
|
|
|
<h1 class="page-header">@yield('title')</h1>
|
|
|
|
<form id="batterytracking-form">
|
|
|
|
<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>
|
|
<div id="battery-error" class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="tracked_time">{{ $L('Tracked time') }}</label>
|
|
<div class="input-group date datetimepicker">
|
|
<input type="text" class="form-control" id="tracked_time" name="tracked_time" required >
|
|
<span class="input-group-addon">
|
|
<span class="fa fa-calendar"></span>
|
|
</span>
|
|
</div>
|
|
<div class="help-block with-errors"></div>
|
|
</div>
|
|
|
|
<button id="save-batterytracking-button" type="submit" class="btn btn-default">{{ $L('OK') }}</button>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-6 col-md-5 col-lg-3">
|
|
@include('components.batterycard')
|
|
</div>
|
|
@stop
|