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

Tagesplan

{{ weekday_name(selected_date) }}, {{ selected_date.strftime('%d.%m.%Y') }}

Jede Tageszeit hat ihren eigenen Platz und öffnet sich erst dann, wenn du etwas eintragen möchtest.

Vorheriger Tag Zur Woche Nächster Tag
{% set hidden_snack_sections = sections | selectattr('is_snack_daypart') | rejectattr('visible_by_default') | list %} {% if hidden_snack_sections %}

Zwischenmahlzeit hinzufügen

{% for section in hidden_snack_sections %} {% endfor %}
{% endif %} {% for section in sections %}

{{ section.daypart.name }}

{% if section.summary_items %}

{{ section.summary_items|join(', ') }}

{% else %}

Noch offen. Öffnen, wenn du etwas eintragen möchtest.

{% endif %}
{{ section.entries|length }} geplant
{% if section.selected_quick_action %}
Schon ausgewählt {{ section.selected_quick_action.title }}

{{ section.selected_quick_action.subtitle }}

{% if section.selected_quick_action.type == 'existing' %}
{{ csrf_input() }}
{% else %}
{{ csrf_input() }} {% for component_id in section.selected_quick_action.component_ids %} {% endfor %}
{% endif %}
{% endif %} {% if section.balance_suggestion %}
{{ section.balance_suggestion.text }} {% if section.balance_suggestion["items"] %}
{% for item in section.balance_suggestion["items"] %}
{{ csrf_input() }}
{% endfor %}
{% endif %}
{% endif %} {% if section.meal_candidates %}

Mahlzeitenideen

{% for item in section.meal_candidates %}
{{ csrf_input() }}
{% endfor %}
{% endif %} {% if section.recipe_suggestions %}

Passt gut dazu

{% for suggestion in section.recipe_suggestions %} {% if suggestion.existing_item_id %}
{{ csrf_input() }}
{% else %}
{{ csrf_input() }} {% for component_id in suggestion.component_ids %} {% endfor %}
{% endif %} {% endfor %}
{% endif %}
{% for item in section.search_candidates %}
{{ csrf_input() }}
{% endfor %}
{% if section.entries %}
{% for entry in section.entries %}
{{ entry.item_name }} {{ item_kind_labels[entry.item_kind] }}{% if entry.is_home %} · zuhause{% else %} · bei Bedarf auf Einkaufsliste{% endif %}
{{ entry.visibility_label }} {{ entry.owner_label }} {{ entry.for_label }}
{% if entry.can_edit %}
{{ csrf_input() }}
{% endif %}
{% if entry.note %}

{{ entry.note }}

{% endif %} {% if entry.can_edit %}
Anpassen
{{ csrf_input() }}
{% endif %}
{% endfor %}
{% else %}

Hier ist noch nichts eingetragen. Ein kleiner Anfang reicht völlig.

{% if section.is_snack_daypart %}
{% endif %} {% endif %}
{% endfor %}
{% endblock %}