Display alert for environment_names errors
This commit is contained in:
parent
5210b9e17a
commit
e68ddfb06d
@ -1,6 +1,7 @@
|
|||||||
{% from "components/icon.html" import Icon %}
|
{% from "components/icon.html" import Icon %}
|
||||||
{% from "components/text_input.html" import TextInput %}
|
{% from "components/text_input.html" import TextInput %}
|
||||||
{% from "components/tooltip.html" import Tooltip %}
|
{% from "components/tooltip.html" import Tooltip %}
|
||||||
|
{% from "components/alert.html" import Alert %}
|
||||||
|
|
||||||
{% extends "base_workspace.html" %}
|
{% extends "base_workspace.html" %}
|
||||||
|
|
||||||
@ -24,6 +25,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if form.environment_names.errors %}
|
||||||
|
{{ Alert("Missing Environments", message="Provide at least one environment name.", level="error") }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="block-list project-list-item">
|
<div class="block-list project-list-item">
|
||||||
<header class="block-list__header">
|
<header class="block-list__header">
|
||||||
<h2 class="block-list__title">Project Environments</h2>
|
<h2 class="block-list__title">Project Environments</h2>
|
||||||
@ -46,10 +51,6 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
{% for error in form.environment_names.errors %}
|
|
||||||
<span>{{ error }}</span>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
||||||
<div class="block-list__footer">
|
<div class="block-list__footer">
|
||||||
<a v-on:click="addEnvironment" class="icon-link">Add another environment</a>
|
<a v-on:click="addEnvironment" class="icon-link">Add another environment</a>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user