summaryrefslogtreecommitdiffstats
path: root/ogcp/forms
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-01-11 13:36:19 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-01-11 13:36:19 +0100
commitcba7a0c1c617e1039055652318c11f309eda932f (patch)
tree0c5424dd702c735f3757a73408a51b21dfc0a65e /ogcp/forms
parent2509cacc005832b37e181f6a6a4795f5c7e1fff9 (diff)
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.
Diffstat (limited to 'ogcp/forms')
-rw-r--r--ogcp/forms/action_forms.py1
1 files changed, 1 insertions, 0 deletions
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'))