summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/images.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/images.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/images.html')
-rw-r--r--ogcp/templates/images.html4
1 files changed, 4 insertions, 0 deletions
diff --git a/ogcp/templates/images.html b/ogcp/templates/images.html
index 00bb2e4..462e68d 100644
--- a/ogcp/templates/images.html
+++ b/ogcp/templates/images.html
@@ -67,6 +67,10 @@
<input class="btn btn-light" type="submit" value="{{ _('Delete image') }}"
form="imagesForm" formaction="{{ url_for('action_image_delete') }}" formmethod="get">
{% endif %}
+ {% if current_user.get_permission('IMAGE', 'UPDATE') %}
+ <input class="btn btn-light" type="submit" value="{{ _('Update image') }}"
+ form="imagesForm" formaction="{{ url_for('action_image_config') }}" formmethod="get">
+ {% endif %}
{% endif %}
{% if btn_back %}
<button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">