summaryrefslogtreecommitdiffstats
path: root/ogcp/views.py
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-15 10:11:21 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-15 10:23:09 +0100
commit409dbe3f5cb711c8a542281236f0f5edd28fdd59 (patch)
tree89db20fa88a6cebba981e67a1db8e80043cc3947 /ogcp/views.py
parentd075cdd0034559d378b118c578f650397912111e (diff)
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.
Diffstat (limited to 'ogcp/views.py')
-rw-r--r--ogcp/views.py1
1 files changed, 1 insertions, 0 deletions
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']