mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2026-04-01 00:37:31 +01:00
make default date sensible for LBEs
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user