add template partials for some notification checks

also move out some from the check.html page. This is going to help
with sharing templates between single notifications and csv files.
This commit is contained in:
Leo Hemsted
2017-06-29 12:23:42 +01:00
parent 4eb35a9aa6
commit f1ecee8469
4 changed files with 59 additions and 44 deletions

View File

@@ -120,25 +120,7 @@
</div>
{% elif not recipients.allowed_to_send_to %}
<div class="bottom-gutter">
{% call banner_wrapper(type='dangerous') %}
<h1 class='banner-title'>
You cant send to
{{ 'this' if count_of_recipients == 1 else 'these' }}
{{ recipients.recipient_column_headers[0] }}
{%- if count_of_recipients != 1 -%}
{{ 'es' if 'email address' == recipients.recipient_column_headers[0] else 's' }}
{%- endif %}
</h1>
<p>
In <a href="{{ url_for('.trial_mode') }}">trial mode</a> you can only
send to yourself and members of your team
</p>
{{ skip_to_file_contents() }}
{% endcall %}
</div>
{% include "partials/check/not-allowed-to-send-to.html" %}
{% elif recipients.more_rows_than_can_send %}
{% include "partials/check/too-many-messages.html" %}
{% else %}