From adbd550239549adc893a14204beee3353f3bd528 Mon Sep 17 00:00:00 2001 From: Anna Sidwell Date: Sat, 14 Apr 2018 21:41:01 +1000 Subject: [PATCH] Add draft restore prompt (#52) --- apps/map/templates/map/form.html | 189 +++++++++++++++++++++++++++---- 1 file changed, 169 insertions(+), 20 deletions(-) diff --git a/apps/map/templates/map/form.html b/apps/map/templates/map/form.html index 7171fd7..ff9b851 100644 --- a/apps/map/templates/map/form.html +++ b/apps/map/templates/map/form.html @@ -13,6 +13,11 @@ {% endblock %} @@ -20,7 +25,18 @@ {% block description %}{% trans "Here you can submit a case study for review and it will be added to the map." %}{% endblock %} {% block inner %} +
+
+ You have a saved draft. +

Do you want to restore it? Restoring the draft will overwrite any other data you have input into the form below.

+
+ + + +
+
+ {% crispy form %} {% endblock %} @@ -189,13 +205,17 @@