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 %}