From c898055cc6bf9a4c72ff84962040594dcce42933 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 28 Dec 2025 14:59:27 +0000 Subject: [PATCH] add link to cave edit form --- core/forms.py | 2 +- templates/new_prospect.html | 29 +++++++---------------------- 2 files changed, 8 insertions(+), 23 deletions(-) diff --git a/core/forms.py b/core/forms.py index 5a91afc..742e5bc 100644 --- a/core/forms.py +++ b/core/forms.py @@ -37,7 +37,7 @@ https://www.codeunderscored.com/model-formsets-in-django/ https://django-formset.fly.dev/styling/ """ -todo = """ +todo = """ - Finish rewriting NewProspectForm to include all validation in the form class itself. """ diff --git a/templates/new_prospect.html b/templates/new_prospect.html index dcd6e7b..126f52e 100644 --- a/templates/new_prospect.html +++ b/templates/new_prospect.html @@ -20,7 +20,7 @@ New Cave and Entrance margin-left: 15%; font-family: monospace; font-weight: bold; - font-size: 150%; + font-size: 110%; text-align: right; } .prospect-form label { @@ -54,38 +54,23 @@ New Cave and Entrance
{% csrf_token %} {% for field in form %} - {% if field.name != 'discoverers' and field.name != 'identified_login' and field.name != 'who_are_you' %}
{{ field }} {% if field.help_text %}{{ field.help_text }}{% endif %} {% for error in field.errors %}{{ error }}{% endfor %}
- {% endif %} {% endfor %} -
- - {{ form.discoverers }} - {% if form.discoverers.help_text %}{{ form.discoverers.help_text }}{% endif %} - {% for error in form.discoverers.errors %}{{ error }}{% endfor %} -
-
- - {{ form.identified_login }} - {% if form.identified_login.help_text %}{{ form.identified_login.help_text }}{% endif %} - {% for error in form.identified_login.errors %}{{ error }}{% endfor %} -
-
- - {{ form.who_are_you }} - {% if form.who_are_you.help_text %}{{ form.who_are_you.help_text }}{% endif %} - {% for error in form.who_are_you.errors %}{{ error }}{% endfor %} -
+
{% if success %} -
Prospect submitted successfully. You can edit the details below or enter another.
+
New prospect data entered successfully. + You can edit it here or enter data for another new prospect.
+To add more information for this cave, e.g. a relevant survex file, or a second entrance, +use the Cave Edit form.
{% endif %} {% endblock %}