aboutsummaryrefslogtreecommitdiff
path: root/app/admin/forms.py
diff options
context:
space:
mode:
authorGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 15:58:58 +0100
committerGertjan van den Burg <gertjanvandenburg@gmail.com>2019-04-01 15:58:58 +0100
commit981f29b04caf2c81e7c6109037ec26ee4aadc7f7 (patch)
treefeab05ac45e229cce689c4ab7b9ec1cbf5303bf5 /app/admin/forms.py
parentMove task assignment to separate module (diff)
downloadAnnotateChange-981f29b04caf2c81e7c6109037ec26ee4aadc7f7.tar.gz
AnnotateChange-981f29b04caf2c81e7c6109037ec26ee4aadc7f7.zip
Give admin the ability to delete users
Diffstat (limited to 'app/admin/forms.py')
-rw-r--r--app/admin/forms.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/admin/forms.py b/app/admin/forms.py
index 3d76b5d..a5aa321 100644
--- a/app/admin/forms.py
+++ b/app/admin/forms.py
@@ -69,3 +69,7 @@ class AdminAddDatasetForm(FlaskForm):
class AdminManageDatasetsForm(FlaskForm):
dataset = SelectField("Dataset", coerce=int, validators=[InputRequired()])
delete = SubmitField("Delete")
+
+class AdminManageUsersForm(FlaskForm):
+ user = SelectField("User", coerce=int, validators=[InputRequired()])
+ delete = SubmitField("Delete")