Skip to content

Commit

Permalink
Rename FormCheckBox to CheckBox
Browse files Browse the repository at this point in the history
After the crispy CheckBox has been removed this can be renamed
  • Loading branch information
johannaengland committed Nov 15, 2024
1 parent add696b commit 00b9b5e
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 00b9b5e

Please sign in to comment.