summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/delete_repo.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-23 12:17:41 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-30 13:34:55 +0200
commit31766a3d07549e846c61ead624b4a45f88948fc0 (patch)
treef2f06975e74aeef719a875de805cffeb59ffaba2 /ogcp/templates/actions/delete_repo.html
parentbcd18241c7bf0363d00b2203c294d443b22d7807 (diff)
ogcp: add support for multi-ip repositories
Add support for the new API REST for repository management where the address is a list of ips instead of a single string. Add dynamic address creation in /action/repo/update and /action/repo/add forms through delete and add buttons in the form. Update /image/restore and /cache/fetch to use repository_id. Add additional repository form validations.
Diffstat (limited to 'ogcp/templates/actions/delete_repo.html')
-rw-r--r--ogcp/templates/actions/delete_repo.html29
1 files changed, 24 insertions, 5 deletions
diff --git a/ogcp/templates/actions/delete_repo.html b/ogcp/templates/actions/delete_repo.html
index 17902dd..8c32a8c 100644
--- a/ogcp/templates/actions/delete_repo.html
+++ b/ogcp/templates/actions/delete_repo.html
@@ -9,9 +9,28 @@
<h2 class="mx-5 subhead-heading">{{_('Delete repo')}}</h2>
-{{ wtf.quick_form(form,
- action=url_for('action_repo_delete'),
- method='post',
- button_map={'submit': 'danger'},
- extra_classes="mx-5") }}
+<form class="form mx-5" method="POST">
+ {{ form.hidden_tag() }}
+
+ {{ form.server() }}
+ {{ form.repo_id() }}
+
+ <div class="form-group">
+ {{ form.name.label }}
+ {{ form.name(class="form-control") }}
+ </div>
+
+ <div class="form-group" id="ip-fields">
+ {{ form.addr.label }}
+ {% for addr in form.addr %}
+ {{ addr(class="form-control mb-2") }}
+ {% endfor %}
+ </div>
+
+ <div class="form-group">
+ {{ form.submit(class="btn btn-primary") }}
+ </div>
+
+</form>
+
{% endblock %}