From 2d6ad1311b82d20796718eebcec50cc9df2c578d Mon Sep 17 00:00:00 2001 From: richard-dds Date: Fri, 24 Aug 2018 13:51:55 -0400 Subject: [PATCH] Display environment errors in project form --- templates/components/alert.html | 4 ++++ templates/workspace_project_new.html | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/components/alert.html b/templates/components/alert.html index 80f99196..1fa86489 100644 --- a/templates/components/alert.html +++ b/templates/components/alert.html @@ -31,6 +31,10 @@
{{ message | safe }}
{% endif %} + {% if caller %} +
{{ caller() }}
+ {% endif %} + {% if fragment %}
{% include fragment %} diff --git a/templates/workspace_project_new.html b/templates/workspace_project_new.html index dc19b669..f5304b4b 100644 --- a/templates/workspace_project_new.html +++ b/templates/workspace_project_new.html @@ -54,7 +54,11 @@
{% if form.environment_names.errors %} - {{ Alert("Missing Environments", message="Provide at least one environment name.", level="error") }} + {% call Alert("Missing Environments", level="error") %} + {% for error in form.environment_names.errors %} +

{{ error }}

+ {% endfor %} + {% endcall %} {% endif %}