aboutsummaryrefslogtreecommitdiff
path: root/budget/forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'budget/forms.py')
-rw-r--r--budget/forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/budget/forms.py b/budget/forms.py
index 6272b7f..7ac48cc 100644
--- a/budget/forms.py
+++ b/budget/forms.py
@@ -100,3 +100,8 @@ class InviteForm(Form):
if not validator.regex.match(email):
raise ValidationError("The email %s is not valid" % email)
+
+class CreateArchiveForm(Form):
+ start_date = DateField("Start date", validators=[Required(),])
+ end_date = DateField("End date", validators=[Required(),])
+ name = TextField("Name for this archive (optional)")