diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/logbookform.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/logbookform.html b/templates/logbookform.html index 4209e87..632b52c 100644 --- a/templates/logbookform.html +++ b/templates/logbookform.html @@ -32,11 +32,16 @@ <input name="prev_slug" id="prev_slug" value="{{slug}}" type=hidden> <span {% if dateflag %}style="color:red"{% endif %}> + <span {% if yesterday%}style="color:blue"{% endif %}> <label for="date">Date of the activity{% if dateflag %} (cannot change year on an existing entry){% endif %}</label> <input {% if not user.username %} disabled{% endif %} + {% if dateflag %}style="color:red"{% endif %} + {% if yesterday%}style="color:blue"{% endif %} label = "Date" name = "date" size="12" title="Date of the activity, a single day, in ISO format: 2020-08-17" - {% if date %}value="{{date}}"{% else %}placeholder="2023-08-12"{% endif %} + {% if date %}value="{{date}}"{% else %} + {% if yesterday %} value="{{yesterday}}"{% else %} + placeholder="2025-08-12"{% endif %}{% endif %} required /> </span> @@ -44,6 +49,7 @@ <span {% if authorflag %}style="color:red"{% endif %}> <label for="author">Your name (author) <a href="/aliases/{{year}}">[valid authors]</a></label> <input {% if not user.username %} disabled{% endif %} + {% if authorflag %}style="color:red"{% endif %} label = "author" name = "author" size="20" title="The person writing the logbook entry" {% if author %}value="{{author}}"{% else %}placeholder="Animal"{% endif %} |