summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-08-08 01:27:20 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-08-08 01:27:20 +0300
commita4f84f0812c109b1728f7f4e8a6383346fb32aa3 (patch)
treed25b48b81980fe5deefa18046d92223fc6df0b46
parent9e9c24ad44d9d2386b1dc99be52f48ba38b8f6d2 (diff)
downloadtroggle-a4f84f0812c109b1728f7f4e8a6383346fb32aa3.tar.gz
troggle-a4f84f0812c109b1728f7f4e8a6383346fb32aa3.tar.bz2
troggle-a4f84f0812c109b1728f7f4e8a6383346fb32aa3.zip
better placeholdering
-rw-r--r--core/views/uploads.py2
-rw-r--r--templates/logbookform.html3
2 files changed, 4 insertions, 1 deletions
diff --git a/core/views/uploads.py b/core/views/uploads.py
index 9b4b3fd..55be212 100644
--- a/core/views/uploads.py
+++ b/core/views/uploads.py
@@ -96,6 +96,8 @@ def logbookedit(request, year=None):
"form": form,
"year": year,
"date": date,
+ "author": author,
+ "others": others,
"place": place,
"title": title,
"tu": tu,
diff --git a/templates/logbookform.html b/templates/logbookform.html
index 1aea60c..bd21e5d 100644
--- a/templates/logbookform.html
+++ b/templates/logbookform.html
@@ -71,7 +71,8 @@
<input {% if not user.username %} disabled{% endif %}
label = "tu" name = "tu" size="5"
title="Time underground (hours)"
- placeholder="0.1" />
+ {% if tu %}value="{{tu}}"{% else %}placeholder="0.1" {% endif %}
+ />
<br /><br /> <span style="color: red">This DOES NOT SAVE ANYTHING yet</span>
<button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" type = "submit" value = "save" >
Do logbook entry