diff options
| author | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-09 01:14:57 -0700 |
|---|---|---|
| committer | Tyler Hoang <tyler@tylerhoang.xyz> | 2026-05-09 01:14:57 -0700 |
| commit | 65466fd5c645e546707ce699b4ea289f894fea20 (patch) | |
| tree | debb3768e8d84000a8c32d2df8361bb42a457523 /templates/form.html | |
| parent | 9f82415366e6220651351007c2dc0ef21df7ff85 (diff) | |
Auto-select today's date on add form; clean up rewatch history panel
- Default date_watched to today when adding a new film (JS, en-CA locale)
- Match rewatch history by tmdb_id when available, fall back to title
- Replace inline styles in rewatch section with CSS classes
- Simplify redundant Jinja conditions (rewatch_history and, loop.length > 1)
- Move review-panel margin-top hack to .review-panel-spaced class
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/form.html')
| -rw-r--r-- | templates/form.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/form.html b/templates/form.html index 489d9c6..fce5e48 100644 --- a/templates/form.html +++ b/templates/form.html @@ -68,7 +68,8 @@ <div class="field"> <label for="date_watched">Watched</label> - <input id="date_watched" name="date_watched" type="date" value="{{ film.date_watched if film and film.date_watched else '' }}"> + <input id="date_watched" name="date_watched" type="date" value="{{ film.date_watched if film and film.date_watched else '' }}" + {% if not (film and film.date_watched) %}data-default-today{% endif %}> </div> <div class="field"> |
