mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
backups: Add optional field - Name
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> [sunil: Perform validation for name field] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
1 parent
10924a1dca
commit
f13ad07ecb
2 files changed
+6
-1
No files matched your search
@@ -48,6 +48,10 @@ def _get_repository_choices():
|
||||
|
||||
class CreateArchiveForm(forms.Form):
|
||||
repository = forms.ChoiceField()
|
||||
name = forms.RegexField(
|
||||
label=_('Name'),
|
||||
help_text=_('(Optional) Set a name for this backup archive'),
|
||||
regex=r'^[^{}/]*$', required=False, strip=True)
|
||||
selected_apps = forms.MultipleChoiceField(
|
||||
label=_('Included apps'), help_text=_('Apps to include in the backup'),
|
||||
widget=forms.CheckboxSelectMultiple)
|
||||
|
||||
Reference in new issue
Block a user