From efd0b8acb3f4f098697c8c30bd196dacda39b704 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Thu, 18 Jul 2024 15:34:09 +0200 Subject: 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. --- ogcp/templates/scopes_checkbox_group.html | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 ogcp/templates/scopes_checkbox_group.html (limited to 'ogcp/templates/scopes_checkbox_group.html') diff --git a/ogcp/templates/scopes_checkbox_group.html b/ogcp/templates/scopes_checkbox_group.html new file mode 100644 index 0000000..0ebf15a --- /dev/null +++ b/ogcp/templates/scopes_checkbox_group.html @@ -0,0 +1,16 @@ +{% if form is defined and form.scopes is defined %} + +
+ {{ form.scopes.label(class_='form-label') }} +
+
{{ form.scopes.description }}
+ {% for value, label, checked in form.scopes.iter_choices() %} +
+ + +
+ {% endfor %} +
+
+ +{% endif %} \ No newline at end of file -- cgit v1.2.3-18-g5258