diff options
| -rw-r--r-- | static/styles.css | 2 | ||||
| -rw-r--r-- | templates/form.html | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/static/styles.css b/static/styles.css index 480ace0..288cde2 100644 --- a/static/styles.css +++ b/static/styles.css @@ -154,7 +154,7 @@ button:hover { .form-heading { display: flex; - align-items: flex-end; + align-items: center; justify-content: space-between; padding: 48px 0 26px; } 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 |
