Change ‘title’ to ‘reference’ when writing alert

On the screen where you write an alert without a template Andy pointed
out that ‘title’ feels  bit out of place.

We chose this because ‘Template name’ definitely didn’t fit, but I agree
that reference is better.

Via https://trello.com/c/EqUln5yD/60-changing-title-to-reference-for-alert-template-new-message
This commit is contained in:
Chris Hill-Scott
2021-10-18 15:43:01 +01:00
parent 66e5022198
commit af7a0a52ab
2 changed files with 3 additions and 1 deletions

View File

@@ -24,7 +24,7 @@
{{ form.name(param_extensions={
"classes": "govuk-!-width-full",
"hint": {"text": "Your recipients will not see this"},
"label": {"text": "Title"}
"label": {"text": "Reference"}
}) }}
{{ textbox(
form.template_content,

View File

@@ -712,8 +712,10 @@ def test_write_new_broadcast_page(
assert form['method'] == 'post'
assert 'action' not in form
assert normalize_spaces(page.select_one('label[for=name]').text) == 'Reference'
assert page.select_one('input[type=text]')['name'] == 'name'
assert normalize_spaces(page.select_one('label[for=template_content]').text) == 'Message'
assert page.select_one('textarea')['name'] == 'template_content'
assert page.select_one('textarea')['data-module'] == 'enhanced-textbox'
assert page.select_one('textarea')['data-highlight-placeholders'] == 'false'