Update ServiceSmsSenderForm with new fields

Changes its StringField to GovukTextInputField.

Includes changes to templates that use this form
and associated tests.
This commit is contained in:
Pea Tyczynska
2020-08-04 16:58:04 +01:00
committed by Tom Byers
parent f38e268db6
commit 852ef61aad
4 changed files with 11 additions and 13 deletions

View File

@@ -16,11 +16,10 @@
) }}
{% call form_wrapper() %}
{{ textbox(
form.sms_sender,
width='1-4',
hint='Up to 11 characters, letters, numbers and spaces only'
) }}
{{ form.sms_sender(param_extensions={
"classes": "govuk-!-width-one-quarter",
"hint": {"text": "Up to 11 characters, letters, numbers and spaces only"}
}) }}
{% if not first_sms_sender %}
{{ form.is_default }}
{% endif %}

View File

@@ -22,11 +22,10 @@
<span class="hint"> This phone number receives replies and cannot be changed </span>
</p>
{% else %}
{{ textbox(
form.sms_sender,
width='1-4',
hint='Up to 11 characters, letters, numbers and spaces only'
) }}
{{ form.sms_sender(param_extensions={
"classes": "govuk-!-width-one-quarter",
"hint": {"text": "Up to 11 characters, letters, numbers and spaces only"}
}) }}
{% endif %}
{% if form.is_default.data %}
<p class="form-group">