Skip to content

Commit

Permalink
Merge pull request #3086 from Uninett/uncrispify/FilterGroupForm
Browse files Browse the repository at this point in the history
Uncrispify FilterGroupForm
  • Loading branch information
stveit authored Oct 4, 2024
2 parents a122b2b + 082dd6a commit a375172
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions python/nav/web/alertprofiles/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -425,15 +425,26 @@ 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-4'),
Column('description', css_class='medium-4'),
Column('owner', css_class='medium-4'),
),
self.attrs = set_flat_form_attributes(
form_fields=[
self['id'],
FormRow(
fields=[
FormColumn(
fields=[self['name']],
css_classes='medium-4',
),
FormColumn(
fields=[self['description']],
css_classes='medium-4',
),
FormColumn(
fields=[self['owner']],
css_classes='medium-4',
),
]
),
]
)


Expand Down

0 comments on commit a375172

Please sign in to comment.