diff --git a/app/__init__.py b/app/__init__.py index acd4f73bc..643a9cd02 100644 --- a/app/__init__.py +++ b/app/__init__.py @@ -101,12 +101,14 @@ def create_app(): application.add_template_filter(nl2br) application.add_template_filter(format_datetime) + application.add_template_filter(format_datetime_normal) application.add_template_filter(format_datetime_short) application.add_template_filter(format_time) application.add_template_filter(syntax_highlight_json) application.add_template_filter(valid_phone_number) application.add_template_filter(linkable_name) application.add_template_filter(format_date) + application.add_template_filter(format_date_normal) application.add_template_filter(format_date_short) application.add_template_filter(format_notification_status) @@ -195,6 +197,10 @@ def format_datetime(date): return gmt_timezones(date).strftime('%A %d %B %Y at %H:%M') +def format_datetime_normal(date): + return gmt_timezones(date).strftime('%d %B %Y at %H:%M') + + def format_datetime_short(date): return gmt_timezones(date).strftime('%d %B at %H:%M') @@ -207,6 +213,10 @@ def format_date(date): return gmt_timezones(date).strftime('%A %d %B %Y') +def format_date_normal(date): + return gmt_timezones(date).strftime('%d %B %Y') + + def format_date_short(date): return gmt_timezones(date).strftime('%d %B').lstrip('0') diff --git a/app/assets/stylesheets/components/email-message.scss b/app/assets/stylesheets/components/email-message.scss index a6e27ad5f..338668140 100644 --- a/app/assets/stylesheets/components/email-message.scss +++ b/app/assets/stylesheets/components/email-message.scss @@ -7,7 +7,13 @@ $button-bottom-border-colour: rgba(0, 0, 0, 0.17); &-name { @include bold-24; - margin: 20px 0 10px 0; + margin: 20px 0 5px 0; + } + + &-updated-at { + @include copy-16; + color: $secondary-text-colour; + margin: 0 0 10px 0; } &-meta { diff --git a/app/assets/stylesheets/components/sms-message.scss b/app/assets/stylesheets/components/sms-message.scss index 12d98225c..71778799d 100644 --- a/app/assets/stylesheets/components/sms-message.scss +++ b/app/assets/stylesheets/components/sms-message.scss @@ -36,7 +36,24 @@ .sms-message-name { @include bold-24; - margin: 20px 0 10px 0; + margin: 20px 0 5px 0; +} + +.sms-message-updated-at { + @include copy-16; + color: $secondary-text-colour; + margin: 0 0 10px 0; +} + +.sms-message-use-links-history { + @include copy-16; + color: $secondary-text-colour; + margin: 45px 0 0 0; + + .primary { + color: $text-colour; + + } } .sms-message-picker { @@ -52,7 +69,7 @@ .sms-message-use-links { @include copy-19; - margin-top: -5px; + margin-top: 35px; a { display: block; @@ -73,7 +90,7 @@ .sms-message-use-links-with-title { @extend %sms-message-use-links; - margin-top: 55px; + margin-top: 95px; } .sms-message-from { diff --git a/app/main/views/send.py b/app/main/views/send.py index 8baf787f2..0a95f8854 100644 --- a/app/main/views/send.py +++ b/app/main/views/send.py @@ -80,7 +80,6 @@ def get_example_csv_rows(template, use_example_as_example=True, submitted_fields def choose_template(service_id, template_type): if template_type not in ['email', 'sms']: abort(404) - return render_template( 'views/templates/choose.html', templates=[ diff --git a/app/templates/components/email-message.html b/app/templates/components/email-message.html index 31e62f05c..46deda0f7 100644 --- a/app/templates/components/email-message.html +++ b/app/templates/components/email-message.html @@ -6,7 +6,13 @@ from_name=None, from_address=None, recipient=None, - show_placeholder_for_recipient=False + id=None, + created_at=None, + updated_at=None, + versions_url=None, + version=1, + show_placeholder_for_recipient=False, + show_id=False ) %} {% if name %}