mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Don’t repeat names of columns in the error message
It makes the error message quite noisy. We’re going to move the table right underneath the error message, so you’ll be able to see the column names right there.
This commit is contained in:
@@ -81,13 +81,7 @@
|
|||||||
your template
|
your template
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
Your file has {{ recipients.column_headers | formatted_list(
|
Your file doesn’t have {{ recipients.missing_column_headers | formatted_list(
|
||||||
prefix='one column, called ',
|
|
||||||
prefix_plural='columns called '
|
|
||||||
) }}.
|
|
||||||
</p>
|
|
||||||
<p>
|
|
||||||
It doesn’t have {{ recipients.missing_column_headers | formatted_list(
|
|
||||||
conjunction='or',
|
conjunction='or',
|
||||||
prefix='a column called ',
|
prefix='a column called ',
|
||||||
prefix_plural='columns called '
|
prefix_plural='columns called '
|
||||||
|
|||||||
@@ -142,8 +142,7 @@ def test_upload_csvfile_with_errors_shows_check_page_with_errors(
|
|||||||
""",
|
""",
|
||||||
(
|
(
|
||||||
'The columns in your file need to match the double brackets in your template '
|
'The columns in your file need to match the double brackets in your template '
|
||||||
'Your file has one column, called ‘phone number’. '
|
'Your file doesn’t have a column called ‘name’. '
|
||||||
'It doesn’t have a column called ‘name’. '
|
|
||||||
'Skip to file contents'
|
'Skip to file contents'
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user