Files
food/kitchen/templates/kitchen/shopping.html
T
Caine d0de1b44ea Pantry move/expiry edit + smart shopping list with summary
- Move items between fridge↔freezer (freezer→fridge sets +7d or shelf life expiry, fridge→freezer clears expiry)
- Inline expiry date editor on fridge items (📅 button)
- Smart shopping list now shows recipe gaps (missing required slot ingredients)
- Summary card shows breakdown: X staple restocks, Y expiring, Z recipe gaps
2026-04-02 23:18:01 +01:00

30 lines
943 B
HTML

{% extends "kitchen/base.html" %}
{% block title %}Shopping List — Kitchen{% endblock %}
{% block content %}
<h1>Shopping List</h1>
<div style="display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap;">
<button class="btn btn-primary"
hx-post="{% url 'app-shopping-generate' %}"
hx-target="#shopping-items"
hx-swap="innerHTML">
🔄 Generate Smart List
</button>
<button class="btn btn-secondary"
hx-post="{% url 'app-shopping-clear' %}"
hx-target="#shopping-items"
hx-swap="innerHTML"
hx-confirm="Clear checked items?">
Clear Checked
</button>
</div>
<p style="color: var(--sage); font-size: 0.8rem; margin-bottom: 1.5rem;">
Smart list checks: staples at zero, items expiring within 2 days, and ingredients needed for your recipes.
</p>
<div id="shopping-items">
{% include "kitchen/partials/shopping_list.html" %}
</div>
{% endblock %}