Skip to content

Commit

Permalink
Set css using widget
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Oct 1, 2024
1 parent 840f017 commit e896513
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/nav/web/alertprofiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ def __init__(self, *args, **kwargs):
widget=forms.CheckboxInput(attrs={'class': 'input-align'}),
)
self.fields['type'].label = 'When'
self.fields['type'].widget.attrs.update({"class": "select2"})
self.fields[
'type'
].help_text = """
Expand Down Expand Up @@ -315,7 +316,7 @@ def __init__(self, *args, **kwargs):
css_classes='medium-3',
),
FormColumn(
fields=[HelpFormField(self['type'], css_classes='select2')],
fields=[HelpFormField(self['type'])],
css_classes='medium-3',
),
FormColumn(
Expand Down

0 comments on commit e896513

Please sign in to comment.