diff --git a/mo/web/templates/org_generic_import.html b/mo/web/templates/org_generic_import.html
index 97bd1fa745549cdf11ff64bd1be93f8df3c1baf5..aee9734626c343b06a2a115c36077a02cba6a610 100644
--- a/mo/web/templates/org_generic_import.html
+++ b/mo/web/templates/org_generic_import.html
@@ -12,10 +12,10 @@ Import dat {% if contest or round %}do {% if contest %}soutěže {{ contest.plac
 <div class="alert alert-warning" role="alert" style="white-space: pre-line">{{ "" -}}
 {% for e in warnings %}
 {{ e }}
+{% endfor %}
 {% if confirm_only %}
 Varování nebránila dokončení importu.
 {% endif %}
-{% endfor %}
 </div>
 {% endif %}
 
@@ -24,8 +24,8 @@ Varování nebránila dokončení importu.
 <div class="alert alert-danger" role="alert" style="white-space: pre-line">{{ "" -}}
 {% for e in errs %}
 {{ e }}
-Jelikož došlo k chybám, import nebyl proveden.
 {% endfor %}
+Jelikož došlo k chybám, import nebyl proveden.
 </div>
 {% endif %}