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/auth/user_form.html | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'ogcp/templates/auth/user_form.html') diff --git a/ogcp/templates/auth/user_form.html b/ogcp/templates/auth/user_form.html index bd2f396..ae34490 100644 --- a/ogcp/templates/auth/user_form.html +++ b/ogcp/templates/auth/user_form.html @@ -104,18 +104,7 @@ -
- {{ form.scopes.label(class_='form-label') }} -
{{ form.scopes.description }}
-
- {% for value, label, checked in form.scopes.iter_choices() %} -
- - -
- {% endfor %} -
-
+ {% include 'scopes_checkbox_group.html' %}
-- cgit v1.2.3-18-g5258