diff options
Diffstat (limited to 'templates/logbookform.html')
-rw-r--r-- | templates/logbookform.html | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/templates/logbookform.html b/templates/logbookform.html new file mode 100644 index 0000000..cc338b3 --- /dev/null +++ b/templates/logbookform.html @@ -0,0 +1,79 @@ +{% extends "base.html" %} + +{% block title %}New Logbook Entry form{% endblock %} + +{% block content %} + +<h2>New Logbook Entry in {{year}}</h2> + + {% if save_bad %} + <p style="font-family: monospace; font-weight: bold; color: red; font-size: 130%; text-align: center"> + + Cannot save to '{{save_bad}}' as a file of that name already exists here. + </p> + {% endif %} + <style> + input, textarea {font-family: monospace; font-weight: bold; text-align:center; font-size: 100%; padding: 0.5em; } + textarea {text-align:left } + </style> + <div style = "max-width:100%; margin-left:15%; font-family: monospace; font-weight: bold; font-size: 150%; text-align: right; " > + + <form method ='post' > + {% csrf_token %} + <br /> + + <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" + placeholder="{% if date %}{{date}}{% else %}2023-08-01{% endif %}" " required /> + <br /><br /> + <label for="author">Your name (author) <a href="/aliases/{{year}}">[valid authors]</a></label> + <input {% if not user.username %} disabled{% endif %} + label = "author" name = "author" size="20" + title="The person writing the logbook entry" + placeholder="{{author}}" required /> + <br /><br /> + <label for="others">Other names (comma separated) <a href="/aliases/{{year}}">[valid aliases]</a></label> + <input {% if not user.username %} disabled{% endif %} + label = "others" name = "others" size="20" + title="Everyone else involved" + placeholder="Phil T, Chas, Planc" /> + <br /><br /> + <label for="place">Place: cave name, or 'plateau', 'topcamp' etc.</label> + <input {% if not user.username %} disabled{% endif %} + label = "Place" name = "place" size="15" + title="Place: cave name, or 'plateau', 'topcamp' " + placeholder="basecamp" required /> + <br /><br /> + <label for="title">Title</label> + <input {% if not user.username %} disabled{% endif %} + label = "Title" name = "title" size="30" + title="What we did on our holidays" + placeholder="What we did on our holidays" required /> + <br /><br /> + <label for="title"></label> + <textarea {% if not user.username %} disabled{% endif %} + rows="5" cols="60" + label = "" name = "text" + title="We had a lot of fun..." + placeholder="We had a lot of fun..." required />We had a lot of fun... + </textarea> + + <br><br><br> + <button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" type = "submit" value = "save" > + Save logbook entry + </button> + </form> + + <br /><br /><br /> + Full logbook for this year: <a href="/years/{{year}}/logbook.html"><em>Logbook {{year}}</em></a> + +</div> + +<br /> + +<hr /> + + +{% endblock %}
\ No newline at end of file |