Skip to content

Commit

Permalink
Adding labels to upload form
Browse files Browse the repository at this point in the history
  • Loading branch information
alextreme committed Feb 16, 2023
1 parent 74d7817 commit 1662686
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/open_inwoner/accounts/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -415,11 +415,15 @@ def __init__(self, users, *args, **kwargs):


class CaseUploadForm(forms.Form):
title = forms.CharField(max_length=255, validators=[validate_charfield_entry])
title = forms.CharField(
label=_("Titel"), max_length=255, validators=[validate_charfield_entry]
)
type = forms.ModelChoiceField(
ZaakTypeInformatieObjectTypeConfig.objects.all(), empty_label=None
ZaakTypeInformatieObjectTypeConfig.objects.all(),
empty_label=None,
label=_("Bestand type"),
)
file = forms.FileField()
file = forms.FileField(label=_("Bestand"))

def __init__(self, case, **kwargs):
super().__init__(**kwargs)
Expand Down

0 comments on commit 1662686

Please sign in to comment.