Capitalize Wireless Filter Form Fields

This commit is contained in:
mr1716 2024-05-13 12:32:46 -04:00 committed by GitHub
parent af56e01fa5
commit 8462a313ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -22,7 +22,7 @@ class WirelessLANGroupFilterForm(NetBoxModelFilterSetForm):
parent_id = DynamicModelMultipleChoiceField( parent_id = DynamicModelMultipleChoiceField(
queryset=WirelessLANGroup.objects.all(), queryset=WirelessLANGroup.objects.all(),
required=False, required=False,
label=_('Parent group') label=_('Parent Group')
) )
tag = TagFilterField(model) tag = TagFilterField(model)
@ -51,17 +51,17 @@ class WirelessLANFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
choices=add_blank_choice(WirelessLANStatusChoices) choices=add_blank_choice(WirelessLANStatusChoices)
) )
auth_type = forms.ChoiceField( auth_type = forms.ChoiceField(
label=_('Authentication type'), label=_('Authentication Type'),
required=False, required=False,
choices=add_blank_choice(WirelessAuthTypeChoices) choices=add_blank_choice(WirelessAuthTypeChoices)
) )
auth_cipher = forms.ChoiceField( auth_cipher = forms.ChoiceField(
label=_('Authentication cipher'), label=_('Authentication Cipher'),
required=False, required=False,
choices=add_blank_choice(WirelessAuthCipherChoices) choices=add_blank_choice(WirelessAuthCipherChoices)
) )
auth_psk = forms.CharField( auth_psk = forms.CharField(
label=_('Pre-shared key'), label=_('Pre-Shared Key'),
required=False required=False
) )
tag = TagFilterField(model) tag = TagFilterField(model)
@ -85,17 +85,17 @@ class WirelessLinkFilterForm(TenancyFilterForm, NetBoxModelFilterSetForm):
choices=add_blank_choice(LinkStatusChoices) choices=add_blank_choice(LinkStatusChoices)
) )
auth_type = forms.ChoiceField( auth_type = forms.ChoiceField(
label=_('Authentication type'), label=_('Authentication Type'),
required=False, required=False,
choices=add_blank_choice(WirelessAuthTypeChoices) choices=add_blank_choice(WirelessAuthTypeChoices)
) )
auth_cipher = forms.ChoiceField( auth_cipher = forms.ChoiceField(
label=_('Authentication cipher'), label=_('Authentication Cipher'),
required=False, required=False,
choices=add_blank_choice(WirelessAuthCipherChoices) choices=add_blank_choice(WirelessAuthCipherChoices)
) )
auth_psk = forms.CharField( auth_psk = forms.CharField(
label=_('Pre-shared key'), label=_('Pre-Shared Key'),
required=False required=False
) )
tag = TagFilterField(model) tag = TagFilterField(model)