{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/email-message.html" import email_message %} {% from "components/sms-message.html" import sms_message %} {% from "components/table.html" import list_table, field, text_field, index_field, hidden_field_heading %} {% from "components/placeholder.html" import placeholder %} {% from "components/file-upload.html" import file_upload %} {% from "components/page-footer.html" import page_footer %} {% macro list_of_columns(columns, conjunction='and') %} {% if columns|length == 1 %} ‘{{ (columns|list)[0] }}’ {% else %} {{ "‘{}’ {} ‘{}’".format( "’, ‘".join((columns|list)[0:-1]), conjunction, (columns|list)[-1] ) }} {%- endif %} {%- endmacro %} {% block page_title %} {{ page_heading if errors else "Check and confirm" }} – GOV.UK Notify {% endblock %} {% block maincolumn_content %} {% if not recipients.has_recipient_column %}
Your file has {{ formatted_list( recipients.column_headers, prefix='one column, called', prefix_plural='columns called' ) }}.
{% endcall %}Your file has columns called {{ list_of_columns(recipients.column_headers) }}.
It doesn’t have {% if recipients.missing_column_headers|length == 1 %} a column {% else %} columns {% endif %} called {{ list_of_columns(recipients.missing_column_headers, 'or') }}.
{% endcall %}You need to {{ row_errors[0] }}
{% else %}You need to:
In trial mode you can only send to yourself and members of your team
{% endcall %}You can only send {{ current_service.message_limit }} messages per day {%- if current_service.restricted %} in trial mode {%- endif -%} .
{% endif %}You can still send {{ current_service.message_limit - statistics.get('emails_requested', 0) - statistics.get('sms_requested', 0) }} messages today, but ‘{{ original_file_name }}’ contains {{ count_of_recipients }} {{ recipients.recipient_column_header }} {%- if count_of_recipients != 1 -%} {{ 'es' if 'email address' == recipients.recipient_column_header else 's' }} {%- endif %}
{% endcall %}{% if row_errors and not recipients.missing_column_headers %} Only showing the first {{ count_of_displayed_recipients }} rows with errors {% else %} Only showing the first {{ count_of_displayed_recipients }} rows {% endif %}
{% elif row_errors and not recipients.missing_column_headers %}Only showing rows with errors
{% endif %} {% endblock %}