Nicknames preserved, date checked

This commit is contained in:
2023-08-26 18:39:29 +03:00
parent 93397a774f
commit d08a6aa204
6 changed files with 77 additions and 32 deletions
+8 -2
View File
@@ -4,8 +4,11 @@
{% block content %}
{% if date %}
<h2>Edit Logbook Entry on {{date}}</h2>
{% else %}
<h2>New Logbook Entry in {{year}}</h2>
{% endif %}
{% if save_bad %}
<p style="font-family: monospace; font-weight: bold; color: red; font-size: 130%; text-align: center">
@@ -24,12 +27,15 @@
{% csrf_token %}
<br />
<span {% if dateflag %}style="color:red"{% endif %}>
<label for="date">Date of the activity</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"
{% if date %}value="{{date}}"{% else %}placeholder="2023-08-12"{% endif %}
{% if date %}value="{{date}}"{% else %}placeholder="2023-08-12"{% endif %}
required />
</span>
<br /><br />
<label for="author">Your name (author) <a href="/aliases/{{year}}">[valid authors]</a></label>
<input {% if not user.username %} disabled{% endif %}