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

Remove now unused crispy LabelSubmit #3094

Merged
merged 1 commit into from
Nov 13, 2024
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
8 changes: 1 addition & 7 deletions python/nav/web/crispyforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,7 @@
from typing import Optional

from django import forms
from crispy_forms_foundation.layout import Field, Submit


class LabelSubmit(Submit):
"""Submitbutton with a label above it to align within a row"""

template = 'custom_crispy_templates/submit.html'
from crispy_forms_foundation.layout import Field


class CheckBox(Field):
Expand Down
3 changes: 0 additions & 3 deletions python/nav/web/sortedstats/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@

from django import forms

from crispy_forms_foundation.layout import Layout, Fieldset, Row, Column

from nav.web.crispyforms import (
FlatFieldset,
FormColumn,
FormRow,
LabelSubmit,
SubmitField,
set_flat_form_attributes,
)
Expand Down
2 changes: 0 additions & 2 deletions python/nav/web/templates/custom_crispy_templates/submit.html

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{# NB! This field can be used as a replacement of crispy's Submit and our custom LabelSubmit #}
{# NB! This field can be used as a replacement of crispy's Submit #}
{% if input.has_empty_label %}
<label>&nbsp;</label>
{% endif %}
Expand Down
Loading