summaryrefslogtreecommitdiff
path: root/templates/form.html
diff options
context:
space:
mode:
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