diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-19 15:55:35 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-19 15:55:35 +0000 |
| commit | d06c8ccae125a81eba25f52f30d7da3c1a2bd907 (patch) | |
| tree | 0c61953c155d8e3f44d4676137685d858a582548 /app/admin/forms.py | |
| parent | language (diff) | |
| download | AnnotateChange-d06c8ccae125a81eba25f52f30d7da3c1a2bd907.tar.gz AnnotateChange-d06c8ccae125a81eba25f52f30d7da3c1a2bd907.zip | |
Allow task deletion from management panel
Diffstat (limited to 'app/admin/forms.py')
| -rw-r--r-- | app/admin/forms.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/app/admin/forms.py b/app/admin/forms.py index 6e48ee9..0c35933 100644 --- a/app/admin/forms.py +++ b/app/admin/forms.py @@ -6,8 +6,8 @@ from flask import current_app from flask_wtf import FlaskForm from flask_wtf.file import FileField, FileRequired -from wtforms import StringField, SubmitField, SelectField -from wtforms.validators import DataRequired, ValidationError, InputRequired +from wtforms import SubmitField, SelectField +from wtforms.validators import ValidationError, InputRequired from werkzeug.utils import secure_filename @@ -15,12 +15,13 @@ from app.models import Dataset from app.admin.datasets import validate_dataset, get_name_from_dataset -class AdminAssignTaskForm(FlaskForm): +class AdminManageTaskForm(FlaskForm): username = SelectField( "Username", coerce=int, validators=[InputRequired()] ) dataset = SelectField("Dataset", coerce=int, validators=[InputRequired()]) - submit = SubmitField("Assign") + assign = SubmitField("Assign") + delete = SubmitField("Delete") class AdminAddDatasetForm(FlaskForm): |
