{% extends "withnav_template.html" %} {% from "components/banner.html" import banner_wrapper %} {% from "components/email-message.html" import email_message %} {% from "components/radios.html" import radio_select %} {% 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/file-upload.html" import file_upload %} {% from "components/page-footer.html" import page_footer %} {% from "components/list.html" import formatted_list %} {% from "components/message-count-label.html" import message_count_label %} {% block page_title %} {{ "Error" if errors else "Preview" }} – 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 {{ formatted_list( recipients.column_headers, prefix='one column, called', prefix_plural='columns called' ) }}.
It doesn’t have {{ formatted_list( recipients.missing_column_headers, conjunction='or', prefix='a column called', prefix_plural='columns called' ) }}.
{% 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 %}{% 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 %}