mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Introduces a new add_meal blueprint with routes and templates for scanning barcodes, adding new food items, and logging meals. Updates FoodItemForm and FoodLogForm validation, changes FoodLog.amount to float, and integrates the new workflow into the daily log UI. Refactors user routes and templates to support the new meal logging process.
23 lines
460 B
HTML
23 lines
460 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<p>{{ tod }}</p>
|
|
<p>{{ item.name }}</p>
|
|
|
|
<form method="POST">
|
|
{{ form.hidden_tag() }}
|
|
|
|
<div class="mb-3">
|
|
<div class="form-control-plaintext">
|
|
{{item_id}}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
{{ form.amount.label(class="form-label") }}
|
|
{{ form.amount(class="form-control") }}
|
|
</div>
|
|
|
|
{{ form.submit(class="btn btn-primary") }}
|
|
</form>
|
|
{% endblock%} |