From e68ddfb06d8a107e06d9cd4ae3b5c60e89040449 Mon Sep 17 00:00:00 2001 From: richard-dds Date: Thu, 23 Aug 2018 11:43:25 -0400 Subject: [PATCH] Display alert for environment_names errors --- templates/workspace_project_new.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/templates/workspace_project_new.html b/templates/workspace_project_new.html index a46c5191..6a09c856 100644 --- a/templates/workspace_project_new.html +++ b/templates/workspace_project_new.html @@ -1,6 +1,7 @@ {% from "components/icon.html" import Icon %} {% from "components/text_input.html" import TextInput %} {% from "components/tooltip.html" import Tooltip %} +{% from "components/alert.html" import Alert %} {% extends "base_workspace.html" %} @@ -24,6 +25,10 @@ + {% if form.environment_names.errors %} + {{ Alert("Missing Environments", message="Provide at least one environment name.", level="error") }} + {% endif %} +

Project Environments

@@ -46,10 +51,6 @@ - {% for error in form.environment_names.errors %} - {{ error }} - {% endfor %} -