diff --git a/app/main/forms.py b/app/main/forms.py index cb5c9943a..d303b3673 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -502,9 +502,7 @@ class ServiceSmsSender(Form): class ServiceLetterContactBlock(Form): - letter_contact_block = TextAreaField( - 'How should users contact you?' - ) + letter_contact_block = TextAreaField() def validate_letter_contact_block(form, field): line_count = field.data.strip().count('\n') diff --git a/app/main/views/service_settings.py b/app/main/views/service_settings.py index 5c8f83ae3..abc6dd620 100644 --- a/app/main/views/service_settings.py +++ b/app/main/views/service_settings.py @@ -275,6 +275,10 @@ def service_set_letter_contact_block(service_id): current_service['id'], letter_contact_block=form.letter_contact_block.data.replace('\r', '') or None ) + if request.args.get('from_template'): + return redirect( + url_for('.view_template', service_id=service_id, template_id=request.args.get('from_template')) + ) return redirect(url_for('.service_settings', service_id=service_id)) return render_template( 'views/service-settings/set-letter-contact-block.html', diff --git a/app/templates/partials/templates/guidance-contact-block.html b/app/templates/partials/templates/guidance-contact-block.html deleted file mode 100644 index dda2aa91f..000000000 --- a/app/templates/partials/templates/guidance-contact-block.html +++ /dev/null @@ -1,8 +0,0 @@ -
- Add contact details for your service in - settings. -
-- The text will appear in the top right of all letters your service sends. -
diff --git a/app/templates/views/edit-letter-template.html b/app/templates/views/edit-letter-template.html index 28217c529..a44895432 100644 --- a/app/templates/views/edit-letter-template.html +++ b/app/templates/views/edit-letter-template.html @@ -29,7 +29,6 @@ diff --git a/app/templates/views/service-settings/set-letter-contact-block.html b/app/templates/views/service-settings/set-letter-contact-block.html index 283f19867..33633e0f5 100644 --- a/app/templates/views/service-settings/set-letter-contact-block.html +++ b/app/templates/views/service-settings/set-letter-contact-block.html @@ -3,7 +3,7 @@ {% from "components/page-footer.html" import page_footer %} {% block service_page_title %} - Letter contact block + Letter contact details {% endblock %} {% block maincolumn_content %} @@ -15,6 +15,7 @@