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/repo_inspector.html | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 ogcp/templates/repo_inspector.html (limited to 'ogcp/templates/repo_inspector.html') diff --git a/ogcp/templates/repo_inspector.html b/ogcp/templates/repo_inspector.html new file mode 100644 index 0000000..ccedf5f --- /dev/null +++ b/ogcp/templates/repo_inspector.html @@ -0,0 +1,63 @@ +
+ {{ form.hidden_tag() }} + + {{ form.server() }} + {{ form.repo_id() }} + +
+ {{ form.name.label }} + {{ form.name(class="form-control", required=True) }} +
+ +
+ {{ form.addr.label }} +
+ {% for addr in form.addr %} +
+ {{ addr(class="form-control me-2", placeholder=_("Enter IP Address"), required=True) }} + +
+ {% endfor %} +
+ + + {{ form.submit(class="btn btn-success") }} +
+
+ + \ No newline at end of file -- cgit v1.2.3-18-g5258