summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-17 12:52:32 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-06-17 14:03:00 +0200
commit4a74de1064c6cf0ef9ce10934efa24b63e661083 (patch)
tree5da99ed64437aaee27b037313f62940853905930 /ogcp/forms
parent664ad2bf7bad8014c024ce1b0f247f394a2fcaa4 (diff)
ogcp: add move client to scopes management
Add front end for the client/move REST API. Enable the move of multiple clients selected from the sidebar of Scopes Management. Show the target of the move operation as a list of paths in a dropdown widget in the form. Each path will be structured as: Server/Center/Room The path will also contain folders if they are present.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 718bd3d..9e3a9f6 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -142,6 +142,11 @@ class ClientDetailsForm(FlaskForm):
boot = SelectField(label=_l('Boot Mode'), validate_choice=False)
submit = SubmitField(label=_l('Submit'))
+class ClientMoveForm(FlaskForm):
+ ips = HiddenField()
+ scopes = SelectField(label=_l('Scopes'), validate_choice=False)
+ submit = SubmitField(label=_l('Submit'))
+
class ImportClientsForm(FlaskForm):
server = HiddenField()
room = SelectField(label=_l('Room'))