From a4f84f0812c109b1728f7f4e8a6383346fb32aa3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 8 Aug 2023 01:27:20 +0300 Subject: [PATCH] better placeholdering --- core/views/uploads.py | 2 ++ templates/logbookform.html | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) 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 @@ + {% if tu %}value="{{tu}}"{% else %}placeholder="0.1" {% endif %} + />

This DOES NOT SAVE ANYTHING yet