From 9e386e5454ca6108e5c45664ca24aab79f41af48 Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Mon, 4 Jul 2022 15:29:49 +0200 Subject: Add "Delete Repository" In "Repositories" view, users select a repository from the list on the left and press "Delete repository". --- ogcp/forms/action_forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ogcp/forms') 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')) -- cgit v1.2.3-18-g5258