mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-02-05 10:53:28 -05:00
update test
This commit is contained in:
@@ -52,14 +52,12 @@ def get_example_csv_fields(column_headers, use_example_as_example, submitted_fie
|
||||
|
||||
def get_example_csv_rows(template, use_example_as_example=True, submitted_fields=False):
|
||||
return {
|
||||
"email": (
|
||||
["test@example.com"]
|
||||
if use_example_as_example
|
||||
else [current_user.email_address]
|
||||
),
|
||||
"sms": (
|
||||
["12223334444"] if use_example_as_example else [current_user.mobile_number]
|
||||
),
|
||||
"email": ["test@example.com"]
|
||||
if use_example_as_example
|
||||
else [current_user.email_address],
|
||||
"sms": ["12223334444"]
|
||||
if use_example_as_example
|
||||
else [current_user.mobile_number],
|
||||
}[template.template_type] + get_example_csv_fields(
|
||||
(
|
||||
placeholder
|
||||
@@ -513,14 +511,12 @@ def _check_messages(service_id, template_id, upload_id, preview_row):
|
||||
template=template,
|
||||
max_initial_rows_shown=50,
|
||||
max_errors_shown=50,
|
||||
guestlist=(
|
||||
itertools.chain.from_iterable(
|
||||
[user.name, user.mobile_number, user.email_address]
|
||||
for user in Users(service_id)
|
||||
)
|
||||
if current_service.trial_mode
|
||||
else None
|
||||
),
|
||||
guestlist=itertools.chain.from_iterable(
|
||||
[user.name, user.mobile_number, user.email_address]
|
||||
for user in Users(service_id)
|
||||
)
|
||||
if current_service.trial_mode
|
||||
else None,
|
||||
remaining_messages=remaining_messages,
|
||||
allow_international_sms=current_service.has_permission("international_sms"),
|
||||
)
|
||||
|
||||
@@ -20,13 +20,13 @@
|
||||
{{ page_header(
|
||||
1|message_count_label(template.template_type, suffix='') | capitalize
|
||||
) }}
|
||||
<p>
|
||||
{% if help %}
|
||||
‘{{ template.name }}’
|
||||
<p>
|
||||
{% if help %}
|
||||
‘{{ template.name }}’
|
||||
{% else %}
|
||||
<a class="usa-link" href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">‘{{ template.name }}’</a>
|
||||
{% endif %}
|
||||
was sent
|
||||
{% endif %}
|
||||
was sent
|
||||
{% if job and job.original_file_name != 'Report' %}
|
||||
{% set destination =
|
||||
{'email': 'an email address', 'sms': 'a phone number'} %}
|
||||
@@ -36,7 +36,7 @@
|
||||
by {{ created_by.name }}
|
||||
{% endif %}
|
||||
{{ created_at|format_datetime_human }}
|
||||
</p>
|
||||
</p>
|
||||
|
||||
<div class="">
|
||||
{{ template|string }}
|
||||
|
||||
Reference in New Issue
Block a user