From ddfaae0ef6b38195f3330431101e8fed9e4a50f5 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Mon, 11 Dec 2023 09:24:07 +0100 Subject: templates: add missing delete/update repository templates Add missing templates. Fixes: 15dd4c2a8f69 ('views: add action to update repo') Fixes: 152337b6bdb8 ('views: add action to delete repo') --- ogcp/templates/actions/delete_repo.html | 17 +++++++++++++++++ ogcp/templates/actions/repos_update.html | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 ogcp/templates/actions/delete_repo.html create mode 100644 ogcp/templates/actions/repos_update.html (limited to 'ogcp') diff --git a/ogcp/templates/actions/delete_repo.html b/ogcp/templates/actions/delete_repo.html new file mode 100644 index 0000000..7a6bd79 --- /dev/null +++ b/ogcp/templates/actions/delete_repo.html @@ -0,0 +1,17 @@ +{% extends 'repos.html' %} +{% import "bootstrap/wtf.html" as wtf %} +{% set btn_back = true %} + +{% block nav_repos %} active{% endblock %} +{% block nav_repos_details %} active{% endblock %} +{% block nav_repos_add %}active{% endblock %} +{% block content %} + +

{{_('Delete repo')}}

+ +{{ wtf.quick_form(form, + action=url_for('action_repo_delete'), + method='post', + button_map={'submit': 'danger'}, + extra_classes="mx-5") }} +{% endblock %} diff --git a/ogcp/templates/actions/repos_update.html b/ogcp/templates/actions/repos_update.html new file mode 100644 index 0000000..3ba0450 --- /dev/null +++ b/ogcp/templates/actions/repos_update.html @@ -0,0 +1,17 @@ +{% extends 'repos.html' %} +{% import "bootstrap/wtf.html" as wtf %} +{% set btn_back = true %} + +{% block nav_repos %} active{% endblock %} +{% block nav_repos_details %} active{% endblock %} +{% block nav_repos_update %}active{% endblock %} +{% block content %} + +

{{_('Update repo')}}

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