{% extends "base.html" %} {% from "_macros.html" import chip, csrf_field, empty_state, stat %} {% block content %}

体重の記録

{% if error %}{% endif %}

{{ "測定を訂正する" if values.get("id") else "新しい測定" }}

{{ csrf_field(token) }} {% if values.get("id") %}{% endif %}

{% if values.get("id") %}訂正を取り消す{% endif %}

体重の推移

{% if latest %}
{{ stat("体重", "{:,}".format(latest.grams), "g", "weight") }}

{{ latest.day }}{% if age is not none %}、{{ age }}週{% endif %} {% if change is not none %}{{ chip("前回比 " ~ "{:+,}".format(change) ~ " g", "off") }}{% endif %}

{% include "_weight_chart.html" %} {% for row in rows %}{% endfor %}
測定日体重メモ操作
{{ row.day }}{{ "{:,}".format(row.grams) }} g{{ row.note }}訂正
{% else %}{{ empty_state("体重の記録はまだありません", "上の欄から、最初の測定を記録できます。") }}{% endif %}

生年月日(任意)

登録すると測定時の週齢が表示されます。

{{ csrf_field(token) }}
{% endblock %}