images and overrides

This commit is contained in:
James Moffet
2022-07-21 18:25:23 -07:00
parent e53d12733a
commit c782d5d80b
14 changed files with 735 additions and 56 deletions

View File

@@ -35,7 +35,7 @@ def _create_example_template(service_id):
example_sms_template = service_api_client.create_service_template(
'Example text message template',
'sms',
'Hey ((name)), Im trying out Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
'Hi, Im trying out US Notify. Today is ((day of week)) and my favourite colour is ((colour)).',
service_id,
)
return example_sms_template

View File

@@ -77,7 +77,7 @@ 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': ['07700 900321'] if use_example_as_example else [current_user.mobile_number],
'sms': ['12223334444'] if use_example_as_example else [current_user.mobile_number],
'letter': [
(submitted_fields or {}).get(
key, get_example_letter_address(key) if use_example_as_example else key