diff options
| author | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 15:03:33 +0000 |
|---|---|---|
| committer | Gertjan van den Burg <gertjanvandenburg@gmail.com> | 2019-03-27 15:03:33 +0000 |
| commit | 750220190948c8698a7a81c90e03dae0af410a1a (patch) | |
| tree | 1fd813dcd101dad486b1e4309fdaf6165deec97c /app/admin/forms.py | |
| parent | Validate name of dataset (diff) | |
| download | AnnotateChange-750220190948c8698a7a81c90e03dae0af410a1a.tar.gz AnnotateChange-750220190948c8698a7a81c90e03dae0af410a1a.zip | |
Add ability for admin to delete datasets
Diffstat (limited to 'app/admin/forms.py')
| -rw-r--r-- | app/admin/forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/admin/forms.py b/app/admin/forms.py index 0c35933..30070d2 100644 --- a/app/admin/forms.py +++ b/app/admin/forms.py @@ -52,3 +52,8 @@ class AdminAddDatasetForm(FlaskForm): raise ValidationError( "A dataset with the name '%s' already exists." % name ) + + +class AdminManageDatasetsForm(FlaskForm): + dataset = SelectField("Dataset", coerce=int, validators=[InputRequired()]) + delete = SubmitField("Delete") |
