Remove manual food item addition and barcode scanning

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.
This commit is contained in:
2025-08-07 17:09:47 +02:00
parent c552a4571e
commit b282f333fd
8 changed files with 11 additions and 395 deletions

View File

@@ -29,7 +29,7 @@ Food Nutritional Info
</div>
<div>
{% for log in logs[0] %}
<p class="p-0 mb-0">{{log.food_item.name}} - {{log.amount}}</p>
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
{% endfor %}
</div>
</div>
@@ -41,7 +41,7 @@ Food Nutritional Info
</div>
<div>
{% for log in logs[1] %}
<p class="p-0 mb-0">{{log.food_item.name}} - {{log.amount}}</p>
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
{% endfor %}
</div>
</div>
@@ -52,7 +52,7 @@ Food Nutritional Info
</div>
<div>
{% for log in logs[2] %}
<p class="p-0 mb-0">{{log.food_item.name}} - {{log.amount}}</p>
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
{% endfor %}
</div>
</div>
@@ -63,7 +63,7 @@ Food Nutritional Info
</div>
<div>
{% for log in logs[3] %}
<p class="p-0 mb-0">{{log.food_item.name}} - {{log.amount}}</p>
<p class="p-0 mb-0">{{log.food_item.name}} - {{"{:g}".format(log.amount)}}</p>
{% endfor %}
</div>
</div>