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/templates/actions/delete_repository.html | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 ogcp/templates/actions/delete_repository.html (limited to 'ogcp/templates/actions') diff --git a/ogcp/templates/actions/delete_repository.html b/ogcp/templates/actions/delete_repository.html new file mode 100644 index 0000000..82177a3 --- /dev/null +++ b/ogcp/templates/actions/delete_repository.html @@ -0,0 +1,23 @@ +{% extends 'repositories.html' %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block content %} + +{{ args }} + +

+ {{ _('Delete repository %(repo_name)s', repo_name=repo_name) }} +

+ +{{ wtf.quick_form(form, + action=url_for('repository_delete_post'), + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} + + -- cgit v1.2.3-18-g5258