mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 00:07:02 -04:00
Convert radios on edit org agreement page (basic)
This commit is contained in:
@@ -1182,16 +1182,21 @@ class OrganisationCrownStatusForm(StripWhitespaceForm):
|
||||
|
||||
|
||||
class OrganisationAgreementSignedForm(StripWhitespaceForm):
|
||||
agreement_signed = RadioField(
|
||||
(
|
||||
'Has this organisation signed the agreement?'
|
||||
),
|
||||
agreement_signed = GovukRadiosField(
|
||||
'Has this organisation signed the agreement?',
|
||||
choices=[
|
||||
('yes', 'Yes'),
|
||||
('no', 'No'),
|
||||
('unknown', 'No (but we have some service-specific agreements in place)'),
|
||||
],
|
||||
thing='whether this organisation has signed the agreement',
|
||||
param_extensions={
|
||||
'items': [
|
||||
{'hint': {'html': 'Users will be told their organisation has already signed the agreement'}},
|
||||
{'hint': {'html': 'Users will be prompted to sign the agreement before they can go live'}},
|
||||
{'hint': {'html': 'Users will not be prompted to sign the agreement'}}
|
||||
]
|
||||
}
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -17,14 +17,7 @@
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-five-sixths">
|
||||
{% call form_wrapper() %}
|
||||
{{ radios(
|
||||
form.agreement_signed,
|
||||
option_hints={
|
||||
'yes': 'Users will be told their organisation has already signed the agreement',
|
||||
'no': 'Users will be prompted to sign the agreement before they can go live',
|
||||
'unknown': 'Users will not be prompted to sign the agreement'
|
||||
}
|
||||
) }}
|
||||
{{ form.agreement_signed }}
|
||||
{{ page_footer('Save') }}
|
||||
{% endcall %}
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user