summaryrefslogtreecommitdiff
path: root/templates/form.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/form.html')
-rw-r--r--templates/form.html3
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">