{% extends "base.html" %} {% block title %}Einkaufsliste | Nouri{% endblock %} {% block content %}

Einkaufsliste

Was noch mitkommen soll

Hier erscheint, was für den nächsten Einkauf wirklich relevant ist. Spätere Bedarfe bleiben erstmal ruhig vorgemerkt.

{{ csrf_input() }}
{% for item in addable_items %} {% set item_icon_class = { 'protein': 'icon-component-protein', 'carb': 'icon-component-carb', 'veg': 'icon-component-veg', 'fruit': 'icon-component-fruit', 'dairy': 'icon-component-dairy', 'nuts': 'icon-component-nuts', 'seeds': 'icon-component-seeds', 'neutral': 'icon-component-neutral', }.get(item.primary_builder_key or item.base_type, 'icon-component-neutral') %} {% if item.kind == 'shopping' %} {% set item_icon_class = 'icon-cart-shopping' %} {% endif %} {% endfor %}
{% if entries %}

Für den nächsten Einkauf

{{ entries|length }} Einträge
{% for entry in entries %} {% set entry_icon_class = { 'protein': 'icon-component-protein', 'carb': 'icon-component-carb', 'veg': 'icon-component-veg', 'fruit': 'icon-component-fruit', 'dairy': 'icon-component-dairy', 'nuts': 'icon-component-nuts', 'seeds': 'icon-component-seeds', 'neutral': 'icon-component-neutral', }.get(entry.primary_builder_key or entry.base_type, 'icon-component-neutral') %} {% if entry.item_kind == 'shopping' %} {% set entry_icon_class = 'icon-cart-shopping' %} {% endif %}
{% if entry.photo_filename %} {% else %} {% endif %}
{{ entry.item_name }} {% if entry.shopping_note %}

{{ entry.shopping_note }}

{% endif %} {% if entry.needed_for_label %}

Für {{ entry.needed_for_label }} {% if entry.needed_daypart_name %} · {{ entry.needed_daypart_name }}{% endif %}

{% endif %}
{{ csrf_input() }}
{% if entry.can_edit %}
{{ csrf_input() }}
{% endif %}

{{ entry.item_name }}

{% if entry.shopping_note %} {{ entry.shopping_note }} {% elif entry.needed_for_label %} Für {{ entry.needed_for_label }} {% if entry.needed_daypart_name %} · {{ entry.needed_daypart_name }}{% endif %} {% elif entry.item_kind == 'shopping' %} Einkaufsartikel {% elif entry.is_home %} Zuhause vorhanden {% else %} Gerade nicht da {% endif %}

{% if entry.can_edit and entry.item_kind != 'shopping' %} Bearbeiten {% endif %}
{{ csrf_input() }}
{% if entry.can_edit %}
{{ csrf_input() }}
{{ csrf_input() }}
{% if entry.item_kind != 'shopping' and entry.is_home %}
{{ csrf_input() }}
{% elif entry.item_kind != 'shopping' %}
{{ csrf_input() }}
{% endif %} {% if entry.item_kind != 'shopping' %}
{{ csrf_input() }}
{% endif %} {% endif %}
{% endfor %}
{% else %}

Die Liste ist gerade frei

Einträge aus Lebensmitteln, Vorlagen oder kleinen Paketen lassen sich jederzeit wieder hinzufügen.

{% endif %} {% if upcoming_entries %}

Später gebraucht

Einkaufstag: {{ shopping_weekday_label }}
{% for entry in upcoming_entries %}
{{ entry.item_name }}

Wird ab {{ entry.activation_label }} in die Einkaufsliste übernommen

{{ entry.for_label }} {{ entry.needed_for_label }} {% if entry.needed_daypart_name %} {{ entry.needed_daypart_name }} {% endif %}
{% endfor %}
{% endif %} {% endblock %}