From 82005144616ff050acf32741855539c4f146b2f2 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Thu, 1 Nov 2018 14:45:12 +0000 Subject: [PATCH] Fix double error border --- app/templates/views/check/column-errors.html | 4 +--- app/templates/views/notifications/check.html | 12 ++++++------ 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/app/templates/views/check/column-errors.html b/app/templates/views/check/column-errors.html index e91bacc67..94c81a559 100644 --- a/app/templates/views/check/column-errors.html +++ b/app/templates/views/check/column-errors.html @@ -113,9 +113,7 @@ {% with count_of_recipients=count_of_recipients %} - {% call banner_wrapper(type='dangerous') %} - {% include "partials/check/trying-to-send-letters-in-trial-mode.html" %} - {% endcall %} + {% include "partials/check/trying-to-send-letters-in-trial-mode.html" %} {% endwith %} diff --git a/app/templates/views/notifications/check.html b/app/templates/views/notifications/check.html index c904f1788..15beea30f 100644 --- a/app/templates/views/notifications/check.html +++ b/app/templates/views/notifications/check.html @@ -10,13 +10,13 @@ {% if template.template_type == 'letter' and current_service.trial_mode %} {% set error = 'trial-mode-letters' %}
- {% with - count_of_recipients=1 - %} - {% call banner_wrapper(type='dangerous') %} + {% call banner_wrapper(type='dangerous') %} + {% with + count_of_recipients=1 + %} {% include "partials/check/trying-to-send-letters-in-trial-mode.html" %} - {% endcall %} - {% endwith %} + {% endwith %} + {% endcall %}
{% elif error == 'not-allowed-to-send-to' %}