diff --git a/app/templates/views/add-service.html b/app/templates/views/add-service.html index cd1e90466..5323d3f87 100644 --- a/app/templates/views/add-service.html +++ b/app/templates/views/add-service.html @@ -31,9 +31,7 @@ GOV.UK Notify | Set up service
{{ textbox(form.name) }} - {{ page_footer( - 'Continue' - ) }} + {{ page_footer('Continue') }}
diff --git a/app/templates/views/email-not-received.html b/app/templates/views/email-not-received.html index 0ebb1e64d..935791da2 100644 --- a/app/templates/views/email-not-received.html +++ b/app/templates/views/email-not-received.html @@ -13,13 +13,11 @@ GOV.UK Notify

Check your email address

Check your email address is correct and then resend the confirmation code.

-

-

-
- {{ textbox(form.email_address) }} - Your email address must end in .gov.uk - {{ page_footer('Resend confirmation code') }} -
+ +
+ {{ textbox(form.email_address, hint='Your email address must end in .gov.uk') }} + {{ page_footer('Resend confirmation code') }} +
diff --git a/app/templates/views/new-password.html b/app/templates/views/new-password.html index e33632a49..e727317f9 100644 --- a/app/templates/views/new-password.html +++ b/app/templates/views/new-password.html @@ -11,16 +11,20 @@ GOV.UK Notify
{% if user %} -

Create a new password

- -

You can now create a new password for your account.

- -
- {{ textbox(form.new_password, hint="Your password must have at least 10 characters") }} - {{ page_footer("Continue") }} -
+

+ Create a new password +

+

+ You can now create a new password for your account. +

+
+ {{ textbox(form.new_password, hint="Your password must have at least 10 characters") }} + {{ page_footer("Continue") }} +
{% else %} - Message about email address does not exist. Some one needs to figure out the words here. +

+ Message about email address does not exist. Some one needs to figure out the words here. +

{% endif %}
diff --git a/app/templates/views/register.html b/app/templates/views/register.html index 6febe768c..dde379b88 100644 --- a/app/templates/views/register.html +++ b/app/templates/views/register.html @@ -14,9 +14,7 @@ GOV.UK Notify | Create an account

If you've used GOV.UK Notify before, sign in to your account.

-
- {{ form.hidden_tag() }} - + {{ textbox(form.name) }} {{ textbox(form.email_address, hint="Your email address must end in .gov.uk") }} {{ textbox(form.mobile_number) }} diff --git a/app/templates/views/two-factor.html b/app/templates/views/two-factor.html index b047a01f3..9c1bf79de 100644 --- a/app/templates/views/two-factor.html +++ b/app/templates/views/two-factor.html @@ -14,11 +14,13 @@ GOV.UK Notify | Text verification

We've sent you a text message with a verification code.

- {{ textbox(form.sms_code) }} - I haven't received a text - {{ page_footer("Continue") }} + {{ page_footer( + "Continue", + back_link=url_for('.verification_code_not_received'), + back_link_text='I haven’t received a text' + ) }}
diff --git a/app/templates/views/verify.html b/app/templates/views/verify.html index b6fba7936..1879ad0b1 100644 --- a/app/templates/views/verify.html +++ b/app/templates/views/verify.html @@ -16,9 +16,13 @@ GOV.UK Notify | Confirm email address and mobile number
{{ textbox(form.email_code) }} - I haven't received an email +

+ I haven't received an email +

{{ textbox(form.sms_code) }} - I haven't received a text +

+ I haven't received a text +

{{ page_footer("Continue") }}
diff --git a/tests/app/main/views/test_new_password.py b/tests/app/main/views/test_new_password.py index 22c934cbc..a3a17061a 100644 --- a/tests/app/main/views/test_new_password.py +++ b/tests/app/main/views/test_new_password.py @@ -16,9 +16,8 @@ def test_should_render_new_password_template(app_, with app_.test_client() as client: token = generate_token(api_user_active.email_address) response = client.get(url_for('.new_password', token=token)) - print(response.location) assert response.status_code == 200 - assert ' You can now create a new password for your account.' in response.get_data(as_text=True) + assert 'You can now create a new password for your account.' in response.get_data(as_text=True) @pytest.mark.skipif(True, reason='Password reset no implemented')