add other send notification error branches and tests

This commit is contained in:
Leo Hemsted
2017-06-29 16:06:36 +01:00
parent 42e33ce9e6
commit 87aeec1b8d
6 changed files with 56 additions and 11 deletions

View File

@@ -1,3 +1,5 @@
{% from "components/banner.html" import banner_wrapper %}
<div class="bottom-gutter">
{% call banner_wrapper(type='dangerous') %}
<h1 class='banner-title'>

View File

@@ -1,3 +1,5 @@
{% from "components/banner.html" import banner_wrapper %}
<div class="bottom-gutter">
{% call banner_wrapper(type='dangerous') %}
<h1 class='banner-title'>

View File

@@ -14,9 +14,9 @@
%}
{% include "partials/check/not-allowed-to-send-to.html" %}
{% endwith %}
{% elif error == 'more_rows_than_can_send' %}
{% elif error == 'too-many-messages' %}
{% include "partials/check/too-many-messages.html" %}
{% elif error == 'row_errors' %}
{% elif error == 'message-too-long' %}
{# the only row_errors we can get when sending one off messages is that the message is too long #}
{% include "partials/check/message-too-long.html" %}
{% else %}