mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Introduces 'overview' and 'test' routes and templates for daily nutrition summaries. Updates FoodLog model to include 'part_of_day' and 'date_' fields for better log categorization. Adjusts log creation and seed data to support new fields. Removes SSL context from app run for local development.
69 lines
1.8 KiB
HTML
69 lines
1.8 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Food Nutritional Info
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<!-- Daily Overview Section -->
|
|
<div class="container">
|
|
|
|
<div class="mb-4 p-3 border rounded">
|
|
<div class="text-center">
|
|
<h2>Daily Overview ({{date}})</h2>
|
|
<p>Summary info here...</p>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="p-3 border rounded">
|
|
<div class="text-center">
|
|
<h2>Detailed Information</h2>
|
|
<p>More content here...</p>
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<h4>Breakfast</h4>
|
|
{% for log in logs[0] %}
|
|
<p>{{log.food_item.name}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<h4>Lunch</h4>
|
|
{% for log in logs[1] %}
|
|
<p>{{log.food_item.name}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<h4>Dinner</h4>
|
|
{% for log in logs[2] %}
|
|
<p>{{log.food_item.name}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<h4>Snacks</h4>
|
|
{% for log in logs[3] %}
|
|
<p>{{log.food_item.name}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
<div class="container-fluid my-4">
|
|
<div class="d-flex justify-content-center">
|
|
<h1>Overview {{date}}</h1>
|
|
</div>
|
|
<div class="d-flex justify-content-center">
|
|
<div class="mx-2">ENERGY</div>
|
|
<div class="mx-2">PROTEIN</div>
|
|
<div class="mx-2">CARBS</div>
|
|
<div class="mx-2">FATS</div>
|
|
</div>
|
|
<div class="m-5"></div>
|
|
<div class="d-flex justify-content-center">
|
|
<div> Breakfast </div>
|
|
</div>
|
|
</div>
|
|
{% endblock%} |