aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/forms.py
diff options
context:
space:
mode:
authoreMerzh <brice@bmaron.net>2020-04-08 14:00:24 +0200
committerGitHub <noreply@github.com>2020-04-08 14:00:24 +0200
commit03251c090e64082acfe301e844610f64c8f8fdef (patch)
tree8e642b7c10fdcbd0f5a4a18f5648b6f8b6e32922 /ihatemoney/forms.py
parent4b79efe18a9952268d65b98813e3929a8179ed2c (diff)
downloadihatemoney-mirror-03251c090e64082acfe301e844610f64c8f8fdef.zip
ihatemoney-mirror-03251c090e64082acfe301e844610f64c8f8fdef.tar.gz
ihatemoney-mirror-03251c090e64082acfe301e844610f64c8f8fdef.tar.bz2
merge settings and import to avoid clutter (#550)
Diffstat (limited to 'ihatemoney/forms.py')
-rw-r--r--ihatemoney/forms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ihatemoney/forms.py b/ihatemoney/forms.py
index 88afd29..62c2144 100644
--- a/ihatemoney/forms.py
+++ b/ihatemoney/forms.py
@@ -114,8 +114,11 @@ class EditProjectForm(FlaskForm):
class UploadForm(FlaskForm):
file = FileField(
- "JSON", validators=[FileRequired(), FileAllowed(["json", "JSON"], "JSON only!")]
+ "JSON",
+ validators=[FileRequired(), FileAllowed(["json", "JSON"], "JSON only!")],
+ description=_("Import previously exported JSON file"),
)
+ submit = SubmitField(_("Import"))
class ProjectForm(EditProjectForm):