36 lines
853 B
HTML
36 lines
853 B
HTML
{% extends "base.html" %}
|
|
{% block title %}Check-ins{% endblock %}
|
|
{% block content %}
|
|
<h1>Check-ins</h1>
|
|
<a href="/checkins/new" role="button">New Check-in</a>
|
|
|
|
{% if checkins %}
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th>Date</th>
|
|
<th>Feeling</th>
|
|
<th>Weight</th>
|
|
<th>Calories</th>
|
|
<th>Steps</th>
|
|
<th>Sleep</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for c in checkins %}
|
|
<tr>
|
|
<td>{{ c.date }}</td>
|
|
<td>{{ c.feeling or '—' }}</td>
|
|
<td>{{ c.weight_lb or '—' }}</td>
|
|
<td>{{ c.calories or '—' }}</td>
|
|
<td>{{ c.steps or '—' }}</td>
|
|
<td>{{ c.sleep_hours or '—' }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
<p>No check-ins yet.</p>
|
|
{% endif %}
|
|
{% endblock %}
|