mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 11:19:59 +00:00
Deleted routes and templates related to manual food item entry and barcode scanning, including add_food_item, add_food_item_manual, food_item, log_food, and related session-based selection routes. Updated navigation in base.html to remove links to these features and added links to overview, daily log, and dashboard. Simplified daily_log.html to format log amounts, and removed unused imports and forms from routes.py.
73 lines
2.5 KiB
HTML
73 lines
2.5 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">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0">Breakfast</h4>
|
|
<a href="{{url_for('add_meal.step1', meal_type=0)}}" class="btn btn-sm btn-primary">Add</a>
|
|
</div>
|
|
<div>
|
|
{% for log in logs[0] %}
|
|
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="p-3 mb-2 border rounded">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0">Lunch</h4>
|
|
<a href="{{url_for('add_meal.step1', meal_type=1)}}" class="btn btn-sm btn-primary">Add</a>
|
|
</div>
|
|
<div>
|
|
{% for log in logs[1] %}
|
|
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0">Dinner</h4>
|
|
<a href="{{url_for('add_meal.step1', meal_type=2)}}" class="btn btn-sm btn-primary">Add</a>
|
|
</div>
|
|
<div>
|
|
{% for log in logs[2] %}
|
|
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
<div class="p-3 mb-2 border rounded">
|
|
<div class="d-flex justify-content-between align-items-center">
|
|
<h4 class="mb-0">Snacks</h4>
|
|
<a href="{{url_for('add_meal.step1', meal_type=3)}}" class="btn btn-sm btn-primary">Add</a>
|
|
</div>
|
|
<div>
|
|
{% for log in logs[3] %}
|
|
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
{% endblock%} |