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.
master
Javier Hernandez 2024-01-15 10:11:21 +01:00 committed by OpenGnSys Support Team
parent d075cdd003
commit 409dbe3f5c
1 changed files with 1 additions and 0 deletions

View File

@ -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']