mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Merge pull request #3771 from alphagov/fix-all-radios-forms-with-duplicate-legends
Fix all radios forms with duplicate legends
This commit is contained in:
@@ -1947,7 +1947,7 @@ class ServiceInboundNumberForm(StripWhitespaceForm):
|
||||
self.inbound_number.choices = kwargs['inbound_number_choices']
|
||||
|
||||
inbound_number = GovukRadiosField(
|
||||
"Select your inbound number",
|
||||
"Set inbound number",
|
||||
thing='an inbound number',
|
||||
)
|
||||
|
||||
|
||||
@@ -209,12 +209,14 @@ def user_profile_disable_platform_admin_view():
|
||||
abort(403)
|
||||
|
||||
form = ServiceOnOffSettingForm(
|
||||
name="Signing in again clears this setting",
|
||||
name="Use platform admin view",
|
||||
enabled=not session.get('disable_platform_admin_view'),
|
||||
truthy='Yes',
|
||||
falsey='No',
|
||||
)
|
||||
|
||||
form.enabled.param_extensions = {"hint": {"text": "Signing in again clears this setting"}}
|
||||
|
||||
if form.validate_on_submit():
|
||||
session['disable_platform_admin_view'] = not form.enabled.data
|
||||
return redirect(url_for('.user_profile'))
|
||||
|
||||
Reference in New Issue
Block a user