diff options
-rw-r--r-- | core/views/uploads.py | 2 | ||||
-rw-r--r-- | templates/logbookform.html | 3 |
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 |