From cba7a0c1c617e1039055652318c11f309eda932f Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Thu, 11 Jan 2024 13:36:19 +0100 Subject: views: Add computers to folder Add support for adding computers to a folder. It uses a js script that when selecting a folder in the html form, it will also select the parent of the folder. For instance, if the user were to select a folder that is contained inside a room, the room would also get selected. This allows the view to know which parent contains the folder. --- ogcp/forms/action_forms.py | 1 + 1 file changed, 1 insertion(+) (limited to 'ogcp/forms/action_forms.py') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index cbdaaaa..c803b02 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -129,6 +129,7 @@ class ClientDetailsForm(FlaskForm): ('eth2', 'eth2')]) repo = SelectField(label=_l('Repository')) room = SelectField(label=_l('Room')) + folder_id = HiddenField() boot = SelectField(label=_l('Boot Mode')) submit = SubmitField(label=_l('Submit')) -- cgit v1.2.3-18-g5258