summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2022-07-04 15:29:49 +0200
committerJavier Sánchez Parra <jsanchez@soleta.eu>2022-07-04 15:34:03 +0200
commit9e386e5454ca6108e5c45664ca24aab79f41af48 (patch)
treedaa2637021c13f434ab62d7bbb1ec612480d5a5f /ogcp/forms/action_forms.py
parentc068bd21448c2e202720a9daf2923a375c96370d (diff)
Add "Delete Repository"
In "Repositories" view, users select a repository from the list on the left and press "Delete repository".
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index b1da58b..951ea06 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -192,3 +192,8 @@ class RepositoryForm(FlaskForm):
ip = StringField(label=_l('IP'),
validators=[InputRequired()])
submit = SubmitField(label=_l('Submit'))
+
+class DeleteRepositoryForm(FlaskForm):
+ repository = SelectField(label=_l('Repository'),
+ validators=[InputRequired()])
+ submit = SubmitField(label=_l('Submit'))