Skip to content

Commit

Permalink
Merge pull request #3210 from Uninett/cleanup/rename-non-crispy-checkbox
Browse files Browse the repository at this point in the history
Rename `FormCheckBox` to `CheckBox`
  • Loading branch information
johannaengland authored Nov 19, 2024
2 parents add696b + 00b9b5e commit a9c9596
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions python/nav/web/arnold/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@

from nav.util import is_valid_ip, is_valid_mac
from nav.web.crispyforms import (
CheckBox,
FlatFieldset,
FormCheckBox,
FormColumn,
FormDiv,
FormRow,
Expand Down Expand Up @@ -243,7 +243,7 @@ def __init__(self, *args, **kwargs):
fields=[self['keep_closed']], css_classes='medium-4'
),
FormColumn(
fields=[FormCheckBox(self['exponential'])],
fields=[CheckBox(self['exponential'])],
css_classes='medium-4',
),
FormDiv(css_classes='medium-4 columns'),
Expand All @@ -254,7 +254,7 @@ def __init__(self, *args, **kwargs):
],
css_class='secondary',
),
FormCheckBox(self['active']),
CheckBox(self['active']),
],
submit_field=SubmitField(value='Save'),
)
Expand Down
2 changes: 1 addition & 1 deletion python/nav/web/crispyforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
from django import forms


class FormCheckBox:
class CheckBox:
"""Checkbox suited for the NAV layout
:param field: A field to render as a checkbox field.
Expand Down

0 comments on commit a9c9596

Please sign in to comment.