mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
networks: Change connection type to a radio button
Close: #1821. Signed-off-by: Fioddor Superconcentrado <fioddor@gmail.com> [sunil: Correct the use of RadioSelect widget] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
6cc13bea65
commit
99935a9696
@ -14,7 +14,7 @@ nm = import_from_gi('NM', '1.0')
|
||||
class ConnectionTypeSelectForm(forms.Form):
|
||||
"""Form to select type for new connection."""
|
||||
connection_type = forms.ChoiceField(
|
||||
label=_('Connection Type'),
|
||||
label=_('Connection Type'), widget=forms.RadioSelect,
|
||||
choices=[(key, value)
|
||||
for key, value in network.CONNECTION_TYPE_NAMES.items()])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user