2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-03-22 23:12:19 +00:00

forbid changing year when editing existing logbook entry

This commit is contained in:
2024-08-09 00:58:40 +03:00
parent 859d9a5b22
commit 7dbaea5d24
2 changed files with 25 additions and 12 deletions

View File

@@ -32,7 +32,7 @@
<input name="prev_slug" id="prev_slug" value="{{slug}}" type=hidden>
<span {% if dateflag %}style="color:red"{% endif %}>
<label for="date">Date of the activity</label>
<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 %}
label = "Date" name = "date" size="12"
title="Date of the activity, a single day, in ISO format: 2020-08-17"