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:
Fioddor Superconcentrado 2020-12-23 01:01:54 +01:00 committed by Sunil Mohan Adapa
parent 6cc13bea65
commit 99935a9696
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -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()])