@extends($rootLayout) @if($mode == 'edit') @section('title', $__t('Edit battery')) @else @section('title', $__t('Create battery')) @endif @section('viewJsName', 'batteryform') @section('grocyConfigProps') EditMode: '{{ $mode }}', @if($mode == 'edit') EditObjectId: {{ $battery->id }}, @endif @endsection @section('content')

@yield('title')


@php $classes = $embedded ? '' : 'col-lg-6'; @endphp
{{ $__t('A name is required') }}
active == 1) checked @endif class="form-check-input custom-control-input" type="checkbox" id="active" name="active" value="1">
@php if($mode == 'edit') { $value = $battery->charge_interval_days; } else { $value = 0; } @endphp @include('components.numberpicker', array( 'id' => 'charge_interval_days', 'label' => 'Charge cycle interval (days)', 'value' => $value, 'min' => '0', 'hint' => $__t('0 means suggestions for the next charge cycle are disabled') )) @include('components.userfieldsform', array( 'userfields' => $userfields, 'entity' => 'batteries' ))
@stop