summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2024-08-09 02:02:46 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2024-08-09 02:02:46 +0300
commit517d27458c87444e1a7b02be73bba1edb9a13d29 (patch)
tree1622abfa6161d53a112f7c2e586f1a984d912d0c /templates
parent7dbaea5d24feff4cfa166bbea0a15acb27bb19f9 (diff)
downloadtroggle-517d27458c87444e1a7b02be73bba1edb9a13d29.tar.gz
troggle-517d27458c87444e1a7b02be73bba1edb9a13d29.tar.bz2
troggle-517d27458c87444e1a7b02be73bba1edb9a13d29.zip
make default date sensible for LBEs
Diffstat (limited to 'templates')
-rw-r--r--templates/logbookform.html8
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 %}