summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/repo_details.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/repo_details.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/repo_details.html')
-rw-r--r--ogcp/templates/actions/repo_details.html20
1 files changed, 19 insertions, 1 deletions
diff --git a/ogcp/templates/actions/repo_details.html b/ogcp/templates/actions/repo_details.html
index 674abc2..212a63b 100644
--- a/ogcp/templates/actions/repo_details.html
+++ b/ogcp/templates/actions/repo_details.html
@@ -9,5 +9,23 @@
<h2 class="mx-5 subhead-heading">{{_('Repo details')}}</h2>
-{{ wtf.quick_form(form, 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>
+</form>
+
{% endblock %}