add retroactive check for yesterday's missed habits on /today
Users often only realize a habit was missed the next day; a same-day-only check made it impossible to record it after the fact.
This commit is contained in:
@@ -24,6 +24,15 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% if yesterday_missed %}
|
||||
<h2>어제 놓친 습관</h2>
|
||||
<div class="card">
|
||||
{% for item in yesterday_missed %}
|
||||
{% include "partials/yesterday_item.html" %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<h2>형성 습관</h2>
|
||||
<div class="card">
|
||||
{% for item in build_items %}
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
<div class="habit-item">
|
||||
<div class="habit-item-main">
|
||||
<button
|
||||
type="button"
|
||||
class="check-indicator"
|
||||
hx-post="/today/{{ item.habit_id }}/toggle-yesterday"
|
||||
hx-target="#today-content"
|
||||
hx-swap="innerHTML"
|
||||
aria-label="{{ item.name }} 어제 체크"
|
||||
></button>
|
||||
<div>
|
||||
<div class="habit-item-name">{{ item.name }}</div>
|
||||
{% if item.condition_text %}<div class="habit-item-condition">{{ item.condition_text }}</div>{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user