feat: Added create, edit, list and track templates for battery
This commit is contained in:
parent
ca2d1aa9cf
commit
8cd3a8cd7a
4
templates/battery/create.yml
Normal file
4
templates/battery/create.yml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
name:
|
||||||
|
description: |-
|
||||||
|
used_in:
|
||||||
|
charge_interval_days:
|
10
templates/battery/edit.yml
Normal file
10
templates/battery/edit.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{%- for battery in grocy.fields.batteries %}
|
||||||
|
name: {{ battery.name }}
|
||||||
|
description: >-
|
||||||
|
{{ battery.description }}
|
||||||
|
used_in: {{ battery.used_in }}
|
||||||
|
charge_interval_days: {{ battery.charge_interval_days }}
|
||||||
|
{% if loop.nextitem %}
|
||||||
|
---
|
||||||
|
{%endif%}{%endfor%}
|
||||||
|
|
12
templates/battery/list.yml
Normal file
12
templates/battery/list.yml
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{%- for battery in grocy.fields.batteries %}
|
||||||
|
id: {{ battery.id }}
|
||||||
|
name: {{ battery.name }}
|
||||||
|
description: {{ battery.description }}
|
||||||
|
used_in: {{ battery.used_in }}
|
||||||
|
charge_interval_days: {{ battery.charge_interval_days }}
|
||||||
|
last_charged: {{ battery.last_charged }}
|
||||||
|
charge_cycles_count: {{ battery.charge_cycles_count }}
|
||||||
|
next_estimated_charge_time: {{ battery.next_estimated_charge_time }}
|
||||||
|
{%- if loop.nextitem %}
|
||||||
|
---
|
||||||
|
{%endif%}{%endfor%}
|
1
templates/battery/track.yml
Normal file
1
templates/battery/track.yml
Normal file
@ -0,0 +1 @@
|
|||||||
|
tracked_time:
|
Loading…
Reference in New Issue
Block a user