Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename FormCheckBox to CheckBox #3210

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading