From 053519beae0cb380864773a0cca6dd3d009a5899 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 16 Sep 2024 13:57:31 +0200 Subject: templates: save checkbox state in images and repos Store the checked checkboxes of the sidebar in Images and Repos. Autoselect the correct server after updating the checkboxes. --- ogcp/templates/base.html | 2 +- ogcp/templates/images.html | 6 ++++-- ogcp/templates/repos.html | 4 +++- 3 files changed, 8 insertions(+), 4 deletions(-) (limited to 'ogcp/templates') diff --git a/ogcp/templates/base.html b/ogcp/templates/base.html index 9c6b3e1..f245c8d 100644 --- a/ogcp/templates/base.html +++ b/ogcp/templates/base.html @@ -111,7 +111,7 @@ - + @@ -45,7 +46,8 @@ + name="{{ image["name"] }}_{{ image["id"] }}" + id="image{{ image["id"] }}"/> {{ image["name"] }} {% endfor %} diff --git a/ogcp/templates/repos.html b/ogcp/templates/repos.html index 9f15391..2f5fe1b 100644 --- a/ogcp/templates/repos.html +++ b/ogcp/templates/repos.html @@ -27,6 +27,7 @@ {% for r in repos_list %}