Merge pull request #1282 from alphagov/show-errors-first

Show spreadsheet before template if there’s errors
This commit is contained in:
Chris Hill-Scott
2017-05-23 14:39:10 +01:00
committed by GitHub

View File

@@ -150,7 +150,9 @@
{% endif %} {% endif %}
{{ template|string }} {% if not errors %}
{{ template|string }}
{% endif %}
<div class="bottom-gutter-3-2"> <div class="bottom-gutter-3-2">
{% if errors %} {% if errors %}
@@ -234,4 +236,9 @@
</p> </p>
{% endif %} {% endif %}
{% if errors %}
<h2 class="heading-medium">Preview of {{ template.name }}</h2>
{{ template|string }}
{% endif %}
{% endblock %} {% endblock %}