Files
Django_TasksApp/main/recipes/templates/recipes/cook_later.html
T
2026-10-15 19:58:33 +02:00

10 lines
1.2 KiB
HTML

{% extends 'planner/base.html' %}{% load static %}
{% block title %}Cook Later · Tasknest{% endblock %}
{% block page_class %}recipes-page-content{% endblock %}
{% block content %}
<link rel="stylesheet" href="{% static 'recipes/recipes.css' %}?v=7">
<div class="cook-later"><a class="recipes-back" href="{% url 'recipes:list' %}">← Recipes</a><h1>Cook Later</h1><p>Recipes you saved to make another day.</p>
<div class="cook-later__list">{% for entry in entries %}<article class="cook-later__item"><div><h2><a href="{% if entry.recipe.owner_id == request.user.pk %}{% url 'recipes:detail' entry.recipe.api_id %}{% else %}{% url 'recipes:discover-detail' entry.recipe.api_id %}{% endif %}">{{ entry.recipe.title }}</a></h2>{% if entry.recipe.description %}<p>{{ entry.recipe.description }}</p>{% endif %}<small>Saved {{ entry.created_at|date:'j M Y' }}</small></div><form method="post" action="{% url 'recipes:cook-later-remove' entry.recipe.api_id %}">{% csrf_token %}<button type="submit" aria-label="Remove {{ entry.recipe.title }} from Cook Later">Remove</button></form></article>{% empty %}<p>No recipes saved yet. <a href="{% url 'recipes:match' %}">Browse recipes to save</a>.</p>{% endfor %}</div>
</div>
{% endblock %}