feat: Added get shopping list and shopping lists
style: Removed unused __init__.py file
This commit is contained in:
9
templates/shopping/list.yml
Normal file
9
templates/shopping/list.yml
Normal file
@@ -0,0 +1,9 @@
|
||||
{% for shopping_list in grocy.fields.shopping_lists %}
|
||||
id: {{ shopping_list.id }}
|
||||
name: {{ shopping_list.name }}
|
||||
description: |-
|
||||
{{ shopping_list.description }}
|
||||
{% if loop.nextitem %}
|
||||
---
|
||||
{%endif%}
|
||||
{%endfor %}
|
8
templates/shopping/view.yml
Normal file
8
templates/shopping/view.yml
Normal file
@@ -0,0 +1,8 @@
|
||||
{% for shopping_list_item in grocy.fields.shopping_list_items %}
|
||||
product: {{ shopping_list_item.product.name }}
|
||||
amount: {{ shopping_list_item.amount }}
|
||||
note: {{ shopping_list_item.note }}
|
||||
{% if loop.nextitem %}
|
||||
---
|
||||
{%endif%}
|
||||
{%endfor %}
|
Reference in New Issue
Block a user