{% block content %}{% endblock %}
{% extends "base.html" %} {% block content %}

Welcome to Meal Planner

Use the tabs above to navigate:

{% endblock %} {% extends "base.html" %} {% block content %}

Add New Food

Foods Database

{% for food in foods %} {% endfor %}
Name Serving Cal Protein Carbs Fat Fiber Sodium Calcium
{{ food.name }} {{ food.serving_size }} {{ food.serving_unit }} {{ "%.1f"|format(food.calories) }} {{ "%.1f"|format(food.protein) }}g {{ "%.1f"|format(food.carbs) }}g {{ "%.1f"|format(food.fat) }}g {{ "%.1f"|format(food.fiber) }}g {{ "%.1f"|format(food.sodium) }}mg {{ "%.1f"|format(food.calcium) }}mg
{% endblock %} {% extends "base.html" %} {% block content %}

Create New Meal

Add Food to Meal

Meals

{% for meal in meals %}
{{ meal.name }} - {{ meal.meal_type.title() }}
{% if meal.meal_foods %}
    {% for meal_food in meal.meal_foods %}
  • {{ meal_food.quantity }} × {{ meal_food.food.name }}
  • {% endfor %}
{% else %} No foods added yet {% endif %}
{% endfor %}
{% endblock %} {% extends "base.html" %} {% block content %}

2-Week Plan for {{ person }}

{% for date in dates %} {% endfor %}
Date Meals Calories Protein Carbs Fat Net Carbs Calcium Sodium Actions
{{ date.strftime('%m/%d') }} {% for plan in plans[date] %} {{ plan.meal.name }} {% endfor %} {{ "%.0f"|format(daily_totals[date].calories or 0) }} {{ "%.1f"|format(daily_totals[date].protein or 0) }}g ({{ daily_totals[date].protein_pct or 0 }}%) {{ "%.1f"|format(daily_totals[date].carbs or 0) }}g ({{ daily_totals[date].carbs_pct or 0 }}%) {{ "%.1f"|format(daily_totals[date].fat or 0) }}g ({{ daily_totals[date].fat_pct or 0 }}%) {{ "%.1f"|format(daily_totals[date].net_carbs or 0) }}g {{ "%.0f"|format(daily_totals[date].calcium or 0) }}mg {{ "%.0f"|format(daily_totals[date].sodium or 0) }}mg
{% endblock %} {% extends "base.html" %} {% block content %}

Detailed View for {{ person }}

{{ selected_date.strftime('%A, %B %d, %Y') }}

{% for meal_detail in meal_details %}
{{ meal_detail.plan.meal.name }} - {{ meal_detail.plan.meal.meal_type.title() }}
Foods:
{{ "%.0f"|format(meal_detail.nutrition.calories) }}
Calories
{{ "%.1f"|format(meal_detail.nutrition.protein) }}g
Protein ({{ meal_detail.nutrition.protein_pct or 0 }}%)
{{ "%.1f"|format(meal_detail.nutrition.carbs) }}g
Carbs ({{ meal_detail.nutrition.carbs_pct or 0 }}%)
{{ "%.1f"|format(meal_detail.nutrition.fat) }}g
Fat ({{ meal_detail.nutrition.fat_pct or 0 }}%)
{{ "%.1f"|format(meal_detail.nutrition.net_carbs or 0) }}g
Net Carbs
{{ "%.0f"|format(meal_detail.nutrition.calcium) }}mg
Calcium
{{ "%.0f"|format(meal_detail.nutrition.sodium) }}mg
Sodium
{% endfor %}
Daily Totals
{{ "%.0f"|format(day_totals.calories) }}
Total Calories
{{ "%.1f"|format(day_totals.protein) }}g
Protein ({{ day_totals.protein_pct or 0 }}%)
{{ "%.1f"|format(day_totals.carbs) }}g
Carbs ({{ day_totals.carbs_pct or 0 }}%)
{{ "%.1f"|format(day_totals.fat) }}g
Fat ({{ day_totals.fat_pct or 0 }}%)
{{ "%.1f"|format(day_totals.net_carbs or 0) }}g
Net Carbs
{{ "%.0f"|format(day_totals.calcium) }}mg
Total Calcium
{{ "%.0f"|format(day_totals.sodium) }}mg
Total Sodium
{% if not meal_details %}
No meals planned for this date. Go to the Plan A tab to add meals.
{% endif %} {% endblock %}