From 6b33268b5c03db29cb003acb4e2042c9254402d2 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Tue, 10 Sep 2024 13:33:05 +0200 Subject: ogcp: add view to assign repo to clients Add /action/repo/set in Commands to assign a repository to multiple clients. The view includes the actual repo assigned in the client pills and shows a table with the clients grouped by repo when multiple repos are assigned among the selected clients. --- ogcp/forms/action_forms.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ogcp/forms') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index b4dfe7b..49c9f60 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -189,6 +189,11 @@ class OgliveForm(FlaskForm): oglive = SelectField(label=_l('ogLive')) ok = SubmitField(label=_l('Submit')) +class SetRepoForm(FlaskForm): + ips = HiddenField() + repo = SelectField(label=_l('Repository')) + ok = SubmitField(label=_l('Submit')) + class ImageCreateForm(FlaskForm): ip = HiddenField() os = SelectField(label=_l('Partition'), choices=[]) -- cgit v1.2.3-18-g5258