From a3a8f377f0b0a7d82663110ac209697bd3d82b9a Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Thu, 4 Aug 2022 14:09:59 +0200 Subject: [PATCH] new settins page --- ereuse_devicehub/templates/workbench/settings.html | 14 +++++--------- ereuse_devicehub/workbench/views.py | 8 ++++---- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/ereuse_devicehub/templates/workbench/settings.html b/ereuse_devicehub/templates/workbench/settings.html index 01301e30..a38a787a 100644 --- a/ereuse_devicehub/templates/workbench/settings.html +++ b/ereuse_devicehub/templates/workbench/settings.html @@ -18,26 +18,22 @@
-
Download your settings for Workbench
-

Please select one of this options

+
Workbench 2022
-

Download the settings only for register devices.

- {% if iso %} + {% if 2022_iso %}
-

Download ISO workbench and burn it one one usb stick.

- Download Checksum: SHA512SUMS | - Signature + Download Checksum: SHA512SUMS |

diff --git a/ereuse_devicehub/workbench/views.py b/ereuse_devicehub/workbench/views.py index c23e783f..259279f0 100644 --- a/ereuse_devicehub/workbench/views.py +++ b/ereuse_devicehub/workbench/views.py @@ -20,7 +20,7 @@ workbench = Blueprint('workbench', __name__, url_prefix='/workbench') class SettingsView(GenericMixin): decorators = [login_required] template_name = 'workbench/settings.html' - page_title = "Workbench Settings" + page_title = "Workbench" def dispatch_request(self): self.get_context() @@ -43,8 +43,8 @@ class SettingsView(GenericMixin): f for f in os.listdir(f'{path}/static/iso/') if f[-3:].lower() == 'iso' ] - self.context['iso'] = '' - self.context['iso_sha'] = '' + self.context['2022_iso'] = '' + self.context['2022_iso_sha'] = '' if files: self.context['iso'] = files[0] @@ -89,4 +89,4 @@ class SettingsView(GenericMixin): return token -workbench.add_url_rule('/settings/', view_func=SettingsView.as_view('settings')) +workbench.add_url_rule('/', view_func=SettingsView.as_view('settings'))