From 4a70bc174c6cf73bf21f0bd72ac54c4a6da4d0bb Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Wed, 29 Nov 2023 10:06:40 +0100 Subject: views: populate repositories in client form Make, in add and edit clients forms, the field repository show the list with the actual repositories, not a harcoded value. --- ogcp/forms/action_forms.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index dfb1572..6f3f4b9 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -112,8 +112,7 @@ class ClientDetailsForm(FlaskForm): choices=[('eth0', 'eth0'), ('eth1', 'eth1'), ('eth2', 'eth2')]) - repo = SelectField(label=_l('Repository'), - choices=[(1, 'Default')]) + repo = SelectField(label=_l('Repository')) room = SelectField(label=_l('Room')) boot = SelectField(label=_l('Boot Mode')) create = SubmitField(label=_l('Create')) -- cgit v1.2.3-18-g5258