Skip to content

Commit

Permalink
Merge pull request Uninett#3084 from Uninett/uncrispify/FilterForm
Browse files Browse the repository at this point in the history
Uncrispify FilterForm
  • Loading branch information
stveit authored Oct 4, 2024
2 parents 2899bea + 414138c commit 84e06ee
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions python/nav/web/alertprofiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,14 +472,22 @@ def __init__(self, *args, **kwargs):
for field in self.fields.values():
field.widget.attrs['disabled'] = 'disabled'

self.helper = FormHelper()
self.helper.form_tag = False
self.helper.layout = Layout(
'id',
Row(
Column('name', css_class='medium-6'),
Column('owner', css_class='medium-6'),
),
self.attrs = set_flat_form_attributes(
form_fields=[
self['id'],
FormRow(
fields=[
FormColumn(
fields=[self['name']],
css_classes='medium-6',
),
FormColumn(
fields=[self['owner']],
css_classes='medium-6',
),
]
),
]
)


Expand Down

0 comments on commit 84e06ee

Please sign in to comment.