diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-18 15:34:09 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-07-25 09:48:12 +0200 |
commit | efd0b8acb3f4f098697c8c30bd196dacda39b704 (patch) | |
tree | 95959f7e437a531548de90b94ae00181175a04fc /ogcp/templates/auth/user_form.html | |
parent | 594d655d6b13edfd1885d555ecda1a6f912db501 (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/auth/user_form.html')
-rw-r--r-- | ogcp/templates/auth/user_form.html | 13 |
1 files changed, 1 insertions, 12 deletions
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 @@ </table> </div> - <div class="form-group"> - {{ form.scopes.label(class_='form-label') }} - <div class="form-text text-muted">{{ form.scopes.description }}</div> - <div> - {% for value, label, checked in form.scopes.iter_choices() %} - <div class="form-check"> - <input class="form-check-input" type="checkbox" name="{{ form.scopes.name }}" value="{{ value }}" {% if checked %} checked {% endif %}> - <label class="form-check-label">{{ label }}</label> - </div> - {% endfor %} - </div> - </div> + {% include 'scopes_checkbox_group.html' %} </div> <div class="form-group"> |