From 409dbe3f5cb711c8a542281236f0f5edd28fdd59 Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 15 Jan 2024 10:11:21 +0100 Subject: views: set boot field to readonly In edit client form, set boot field to read-only Boot mode can be updated from Commands -> Set boot mode, it is more flexible to do it from there, because you can select several clients and set the boot mode at once. --- ogcp/views.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ogcp') diff --git a/ogcp/views.py b/ogcp/views.py index cf162be..59e086f 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -989,6 +989,7 @@ def action_client_update(): available_modes.extend([(mode, mode) for mode in r.json()['modes'] if mode != current_mode]) form.boot.choices = list(available_modes) + form.boot.render_kw = {'readonly': True} r = server.get('/scopes') room_id = db_client['room'] -- cgit v1.2.3-18-g5258