summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions/image_config.html
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-18 15:34:09 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-07-25 09:48:12 +0200
commitefd0b8acb3f4f098697c8c30bd196dacda39b704 (patch)
tree95959f7e437a531548de90b94ae00181175a04fc /ogcp/templates/actions/image_config.html
parent594d655d6b13edfd1885d555ecda1a6f912db501 (diff)
ogcp: add image restrict functionality
Add center scope restriction using /image/restrict. Add view in Images to update scope permissions. Disable images in Commands for image update and restore if the client belongs to a disabled center. Consolidate template code to render scope selection checkboxes.
Diffstat (limited to 'ogcp/templates/actions/image_config.html')
-rw-r--r--ogcp/templates/actions/image_config.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/ogcp/templates/actions/image_config.html b/ogcp/templates/actions/image_config.html
new file mode 100644
index 0000000..c286683
--- /dev/null
+++ b/ogcp/templates/actions/image_config.html
@@ -0,0 +1,24 @@
+{% extends 'images.html' %}
+{% import "bootstrap/wtf.html" as wtf %}
+
+{% set btn_back = true %}
+
+{% block content %}
+
+<h2 class="mx-5 subhead-heading">{{_('Update image')}}</h2>
+
+<form class="form mx-5" method="POST" action="{{ url_for('action_image_config') }}">
+ {{ form.hidden_tag() }}
+
+ {{ form.image_id() }}
+ {{ form.server() }}
+ {{ form.name() }}
+
+ {% include 'scopes_checkbox_group.html' %}
+
+ <div class="form-group">
+ {{ form.submit(class="btn btn-primary") }}
+ </div>
+ </form>
+
+{% endblock %}