Make SMS provider inputs easier to interpret

In response to: [^1].

[^1]: https://github.com/alphagov/notifications-admin/pull/4205#discussion_r847204574
This commit is contained in:
Ben Thorner
2022-04-11 14:02:04 +01:00
parent 9132004ea3
commit 355a74d202

View File

@@ -1749,10 +1749,13 @@ class AdminProviderRatioForm(Form):
(
provider['identifier'],
GovukIntegerField(
provider['display_name'],
f"{provider['display_name']} (%)",
validators=[validators.NumberRange(
min=0, max=100, message="Must be between 0 and 100"
)]
)],
param_extensions={
'classes': "govuk-input--width-3",
}
)
) for provider in providers
]