summaryrefslogtreecommitdiffstats
path: root/ogcp/forms/action_forms.py
diff options
context:
space:
mode:
authorAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-23 12:17:41 +0200
committerAlejandro Sirgo Rica <asirgo@soleta.eu>2024-08-30 13:34:55 +0200
commit31766a3d07549e846c61ead624b4a45f88948fc0 (patch)
treef2f06975e74aeef719a875de805cffeb59ffaba2 /ogcp/forms/action_forms.py
parentbcd18241c7bf0363d00b2203c294d443b22d7807 (diff)
ogcp: add support for multi-ip repositories
Add support for the new API REST for repository management where the address is a list of ips instead of a single string. Add dynamic address creation in /action/repo/update and /action/repo/add forms through delete and add buttons in the form. Update /image/restore and /cache/fetch to use repository_id. Add additional repository form validations.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r--ogcp/forms/action_forms.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py
index 496be56..5a2a4b1 100644
--- a/ogcp/forms/action_forms.py
+++ b/ogcp/forms/action_forms.py
@@ -122,7 +122,10 @@ class RepoForm(FlaskForm):
server = HiddenField()
repo_id = HiddenField()
name = StringField(label=_l('Name'))
- ip = StringField(label=_l('IP'))
+ addr = FieldList(
+ StringField(label=_l('Address')),
+ label=_l('Addresses'),
+ )
submit = SubmitField(label=_l('Submit'))
class FolderForm(FlaskForm):