flows: allow uploading of custom flow backgrounds, update default flow background

This commit is contained in:
Jens Langhammer
2020-12-02 14:24:24 +01:00
parent 821458373d
commit cc5a0c23aa
12 changed files with 97 additions and 25 deletions

View File

@ -21,20 +21,12 @@ class FlowForm(forms.ModelForm):
"title",
"slug",
"designation",
"background",
]
help_texts = {
"title": _("Shown as the Title in Flow pages."),
"slug": _("Visible in the URL."),
"designation": _(
(
"Decides what this Flow is used for. For example, the Authentication flow "
"is redirect to when an un-authenticated user visits passbook."
)
),
}
widgets = {
"name": forms.TextInput(),
"title": forms.TextInput(),
"background": forms.FileInput(),
}