2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 15:21:52 +00:00

better placeholdering

This commit is contained in:
Philip Sargent 2023-08-08 01:27:20 +03:00
parent 9e9c24ad44
commit a4f84f0812
2 changed files with 4 additions and 1 deletions

View File

@ -96,6 +96,8 @@ def logbookedit(request, year=None):
"form": form, "form": form,
"year": year, "year": year,
"date": date, "date": date,
"author": author,
"others": others,
"place": place, "place": place,
"title": title, "title": title,
"tu": tu, "tu": tu,

View File

@ -71,7 +71,8 @@
<input {% if not user.username %} disabled{% endif %} <input {% if not user.username %} disabled{% endif %}
label = "tu" name = "tu" size="5" label = "tu" name = "tu" size="5"
title="Time underground (hours)" 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> <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" > <button class="fancybutton2" style="padding: 0.5em 25px; margin-left: 110px" type = "submit" value = "save" >
Do logbook entry Do logbook entry