Skip to content

Commit

Permalink
Move FormCheckBox next to CheckBox
Browse files Browse the repository at this point in the history
  • Loading branch information
stveit committed Nov 13, 2024
1 parent 6cc83fd commit bb22cad
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions python/nav/web/crispyforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@ class CheckBox(Field):
template = 'custom_crispy_templates/horizontal_checkbox.html'


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

def __init__(self, field):
self.field = field
self.input_type = 'checkbox'


class HelpField(Field):
"""Field that displays an icon with tooltip as helptext"""

Expand Down Expand Up @@ -195,14 +206,3 @@ class and template definitions.
form_id=form_id,
form_class=form_class,
)


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

def __init__(self, field):
self.field = field
self.input_type = 'checkbox'

0 comments on commit bb22cad

Please sign in to comment.