From 31766a3d07549e846c61ead624b4a45f88948fc0 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Fri, 23 Aug 2024 12:17:41 +0200 Subject: 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. --- ogcp/templates/actions/delete_repo.html | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) (limited to 'ogcp/templates/actions/delete_repo.html') 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 @@

{{_('Delete repo')}}

-{{ wtf.quick_form(form, - action=url_for('action_repo_delete'), - method='post', - button_map={'submit': 'danger'}, - extra_classes="mx-5") }} +
+ {{ form.hidden_tag() }} + + {{ form.server() }} + {{ form.repo_id() }} + +
+ {{ form.name.label }} + {{ form.name(class="form-control") }} +
+ +
+ {{ form.addr.label }} + {% for addr in form.addr %} + {{ addr(class="form-control mb-2") }} + {% endfor %} +
+ +
+ {{ form.submit(class="btn btn-primary") }} +
+ +
+ {% endblock %} -- cgit v1.2.3-18-g5258