From b6a38df0eaedb9ac4bb4b602643ca1e97f889b49 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Thu, 5 Sep 2024 12:50:52 -0500 Subject: Improve error messaging for "Create Population" feature. --- .../templates/populations/create-population.html | 44 +++++++++++++++++----- 1 file changed, 34 insertions(+), 10 deletions(-) (limited to 'uploader/templates/populations/create-population.html') diff --git a/uploader/templates/populations/create-population.html b/uploader/templates/populations/create-population.html index a27a134..6a96148 100644 --- a/uploader/templates/populations/create-population.html +++ b/uploader/templates/populations/create-population.html @@ -40,15 +40,24 @@ Create Population -
+ {{flash_all_messages()}} + +
+ {%if errors.population_fullname%} + {{errors.population_fullname}} + {%endif%}

@@ -58,15 +67,22 @@

-
+
+ {%if errors.population_name%} + {{errors.population_name}} + {%endif%}

@@ -81,15 +97,23 @@

-
+
- + {%if errors.population_description%} + {{errors.population_description}} + {%endif%} +

This is a more detailed description for your population. This is -- cgit v1.2.3