From 55bcec90c14db6f2956ed51cf4df1503c0767f81 Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Mon, 25 May 2026 00:46:10 +0000 Subject: =?UTF-8?q?Initial=20commit=20=E2=80=94=20menu.jots.org=20Flask/SQ?= =?UTF-8?q?Lite=20meal=20planner?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Full-featured weekly menu planner with: - Recipe library with ratings, comments, cuisine/nationality, added-by attribution - AI recipe assistant (Claude) with URL fetching and file upload - Weekly meal plan grid with shopping list generation - Sort by name, prep/cook time, or rating - Print and copy-link support - Deployed on LXC container (192.168.10.51) behind Apache reverse proxy Co-Authored-By: Claude Sonnet 4.6 --- app/templates/meal_plan.html | 265 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 265 insertions(+) create mode 100644 app/templates/meal_plan.html (limited to 'app/templates/meal_plan.html') diff --git a/app/templates/meal_plan.html b/app/templates/meal_plan.html new file mode 100644 index 0000000..3c3a932 --- /dev/null +++ b/app/templates/meal_plan.html @@ -0,0 +1,265 @@ +{% extends "base.html" %} +{% block title %}Meal Plan — Menu Planner{% endblock %} + +{% block content %} +
+
+

Meal Plan

+

{{ week_start.strftime('%B %d') }} – {{ dates[-1].strftime('%B %d, %Y') }}

+
+
+ + This Week + + + {% if current_user.is_authenticated %} + + {% endif %} +
+
+ +{% if not current_user.is_authenticated %} +
+ + Log in to add or remove meals from the plan. +
+{% endif %} + + +
+
+
+ + + + + {% for d in dates %} + + {% endfor %} + + + + {% for mt in meal_types %} + + + {% for d in dates %} + {% set key = d.isoformat() + '_' + mt %} + + {% endfor %} + + {% endfor %} + +
+
{{ d.strftime('%A') }}
+
{{ d.strftime('%b %d') }}
+
{{ mt }} + {% if key in plan %} + {% set entry = plan[key] %} +
+
+
+
+ {{ cuisine_emoji.get(entry.cuisine, '') }} + {{ entry.recipe_name }} +
+
+ {{ entry.calories_per_serving|int }} cal + · + {{ entry.carbs_per_serving|int }}g carbs + · + {{ entry.servings }} ppl +
+
+ {% if current_user.is_authenticated %} + + {% endif %} +
+
+ {% else %} + {% if current_user.is_authenticated %} + + {% else %} + + {% endif %} + {% endif %} +
+
+
+
+ + +
+ +
+ + + +{% endblock %} + +{% block scripts %} + +{% endblock %} -- cgit v1.2.3