Skip to content

Commit

Permalink
Merge pull request Uninett#3094 from Uninett/cleanup/remove-label-submit
Browse files Browse the repository at this point in the history
Remove now unused crispy LabelSubmit
  • Loading branch information
johannaengland authored Nov 13, 2024
2 parents 3f0faab + 6aeb8bf commit 8bc62b0
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
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

0 comments on commit 8bc62b0

Please sign in to comment.