diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-10 13:33:05 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-10 15:11:11 +0200 |
commit | 6b33268b5c03db29cb003acb4e2042c9254402d2 (patch) | |
tree | cb6ceec1c3949177efa592a1466f8d26a9f21667 /ogcp/forms/action_forms.py | |
parent | a1b164b1062eb7ba6b724ebe84d8d7e0b308e234 (diff) |
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.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 5 |
1 files changed, 5 insertions, 0 deletions
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=[]) |