summaryrefslogtreecommitdiff
path: root/templates/form.html
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:30:13 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-09 01:30:13 -0700
commitb4488a36db31a722ae054e076d459bd8c73a341b (patch)
tree43cf60d85c021271a5647485e7a0542b206196c4 /templates/form.html
parent0cc153bb699f0153ed42f619c4bca9820b49a49a (diff)
Fix star alignment in form heading
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates/form.html')
-rw-r--r--templates/form.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/form.html b/templates/form.html
index da76f66..62e020d 100644
--- a/templates/form.html
+++ b/templates/form.html
@@ -20,13 +20,13 @@
<form class="film-form" method="post" action="{{ action }}">
<input id="tmdb_id" name="tmdb_id" type="hidden" value="{{ film.tmdb_id if film and film.tmdb_id else '' }}">
+ {% set current_stars = film.stars if film and film.stars else 0 %}
+ <input type="hidden" id="stars" name="stars" value="{{ current_stars }}">
<div class="form-heading">
<div>
<p class="eyebrow">Diary Entry</p>
<h1>{{ page_title }}</h1>
</div>
- {% set current_stars = film.stars if film and film.stars else 0 %}
- <input type="hidden" id="stars" name="stars" value="{{ current_stars }}">
<div class="star-control" role="group" aria-label="Rate film" data-form-stars data-current-stars="{{ current_stars }}">
{% for value in range(1, 4) %}
<button