mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 03:08:24 -04:00
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:
@@ -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 %}
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user