templates: add missing delete/update repository templates

Add missing templates.

Fixes: 15dd4c2a8f ('views: add action to update repo')
Fixes: 152337b6bd ('views: add action to delete repo')
master v1.1.3-7
OpenGnSys Support Team 2023-12-11 09:24:07 +01:00
parent f76c0ed24d
commit ddfaae0ef6
2 changed files with 34 additions and 0 deletions

View File

@ -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 %}
<h1 class="m-5">{{_('Delete repo')}}</h1>
{{ wtf.quick_form(form,
action=url_for('action_repo_delete'),
method='post',
button_map={'submit': 'danger'},
extra_classes="mx-5") }}
{% endblock %}

View File

@ -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 %}
<h1 class="m-5">{{_('Update repo')}}</h1>
{{ wtf.quick_form(form,
action=url_for('action_repo_update'),
method='post',
button_map={'submit': 'primary'},
extra_classes="mx-5") }}
{% endblock %}