mirror of
https://github.com/StefBuwalda/cal_counter.git
synced 2025-10-30 11:19:59 +00:00
Introduces a new add_meal_v2 blueprint with barcode scanning, item search, and improved meal logging UI. Adds user timezone support: login form now captures timezone, User model and database schema updated, and timezone is set on login. Refactors templates and forms to support these changes, and removes the old login template.
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%} |