mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-16 20:49:00 -04:00
Convert radios on SMS prefix page
Includes changing form.enabled to use OnOffField, for consistency with other on/off fields. OnOffField's data is a boolean, not a string, so some of the logic using it needed to be changed.
This commit is contained in:
@@ -1942,13 +1942,7 @@ class CallbackForm(StripWhitespaceForm):
|
||||
|
||||
|
||||
class SMSPrefixForm(StripWhitespaceForm):
|
||||
enabled = RadioField(
|
||||
'',
|
||||
choices=[
|
||||
('on', 'On'),
|
||||
('off', 'Off'),
|
||||
],
|
||||
)
|
||||
enabled = OnOffField('') # label is assigned on instantiation
|
||||
|
||||
|
||||
def get_placeholder_form_instance(
|
||||
|
||||
Reference in New Issue
Block a user