@extends('layout.default') @if($mode == 'edit') @section('title', $L('Edit battery')) @else @section('title', $L('Create battery')) @endif @section('viewJsName', 'batteryform') @section('content')

@yield('title')

@if($mode == 'edit') @endif
{{ $L('A name is required') }}
@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' => $L('0 means suggestions for the next charge cycle are disabled'), 'invalidFeedback' => $L('This cannot be negative') ))
@stop