Display environment errors in project form
This commit is contained in:
parent
66877b46bd
commit
2d6ad1311b
@ -31,6 +31,10 @@
|
||||
<div class='alert__message'>{{ message | safe }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if caller %}
|
||||
<div class='alert__message'>{{ caller() }}</div>
|
||||
{% endif %}
|
||||
|
||||
{% if fragment %}
|
||||
<div class='alert__message'>
|
||||
{% include fragment %}
|
||||
|
@ -54,7 +54,11 @@
|
||||
</div>
|
||||
|
||||
{% 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 %}
|
||||
<p>{{ error }}</p>
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
<div class="block-list project-list-item">
|
||||
|
Loading…
x
Reference in New Issue
Block a user