Update AddGPOrganisationForm with new fields

Changes its StingFields to GovukTextInputFields.

Includes changes to templates that use this form
and associated tests.
This commit is contained in:
Pea Tyczynska
2020-08-04 16:45:49 +01:00
committed by Tom Byers
parent 9437a23f09
commit f38e268db6
3 changed files with 3 additions and 3 deletions

View File

@@ -1061,7 +1061,7 @@ class AddGPOrganisationForm(StripWhitespaceForm):
), ),
) )
name = StringField( name = GovukTextInputField(
'Whats your practice called?', 'Whats your practice called?',
) )

View File

@@ -22,7 +22,7 @@
{% endfor %} {% endfor %}
{% endcall %} {% endcall %}
{% call conditional_radio_panel('custom-organisation-name') %} {% call conditional_radio_panel('custom-organisation-name') %}
{{ textbox(form.name) }} {{ form.name }}
{% endcall %} {% endcall %}
{{ page_footer('Continue') }} {{ page_footer('Continue') }}
{% endcall %} {% endcall %}

View File

@@ -358,7 +358,7 @@ def test_validation_of_gps_creating_organisations(
_data=data, _data=data,
_expected_status=200, _expected_status=200,
) )
assert normalize_spaces(page.select_one('.error-message').text) == expected_error assert expected_error in page.select_one('.govuk-error-message, .error-message').text
def test_nhs_local_assigns_to_selected_organisation( def test_nhs_local_assigns_to_selected_organisation(