mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 03:10:00 +00:00
Introduces a new FoodLogForm and a /log_food/<item_id> route to allow users to log food consumption. Updates the food item route to redirect to the log page, adds a log_food.html template, and updates the Bootstrap CDN version in base.html.
20 lines
419 B
HTML
20 lines
419 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block content %}
|
|
<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%} |