From 3efae3a57f15153fcd8c06bfc0db372189299a76 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Wed, 10 May 2017 11:27:45 +0100 Subject: [PATCH] =?UTF-8?q?Call=20letter=20subjects=20=E2=80=98main=20head?= =?UTF-8?q?ing=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a term that one of our research participants used to describe the big bold text that starts each letter. I think it’s quite a nice plain english term for it. Also changes the formatting guidance to use the word heading instead of title, for consistency. --- app/main/forms.py | 2 +- app/main/views/templates.py | 4 ++-- .../partials/templates/guidance-formatting-letters.html | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/main/forms.py b/app/main/forms.py index 4bc100129..a688c8bdb 100644 --- a/app/main/forms.py +++ b/app/main/forms.py @@ -290,7 +290,7 @@ class EmailTemplateForm(BaseTemplateForm): class LetterTemplateForm(EmailTemplateForm): subject = TextAreaField( - u'Title', + u'Main heading', validators=[DataRequired(message="Can’t be empty")]) template_content = TextAreaField( diff --git a/app/main/views/templates.py b/app/main/views/templates.py index 9ccf46312..65a9a728b 100644 --- a/app/main/views/templates.py +++ b/app/main/views/templates.py @@ -171,9 +171,9 @@ def add_template_by_type(service_id): blank_letter = service_api_client.create_service_template( 'Untitled', 'letter', - 'Content', + 'Body', service_id, - 'Title', + 'Main heading', 'normal', ) return redirect(url_for( diff --git a/app/templates/partials/templates/guidance-formatting-letters.html b/app/templates/partials/templates/guidance-formatting-letters.html index 77d8d6be4..eaa3a01ba 100644 --- a/app/templates/partials/templates/guidance-formatting-letters.html +++ b/app/templates/partials/templates/guidance-formatting-letters.html @@ -1,10 +1,10 @@

Formatting

- To put a title in your template, use a hash: + To put a heading in your template, use a hash:

- # This is a title + # This is a heading