diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 12:45:49 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-09-03 16:26:22 +0200 |
commit | 7613cd8017e978e771552467a4e10141e120fccb (patch) | |
tree | 172c69df30ead92bdf6b9fb2619523ad6b4f9f29 /ogcp/forms/action_forms.py | |
parent | c1ac88e47c8562699edc9f5304649762366191e0 (diff) |
ogcp: add server ip configuration
Enable server view in the main toolbar.
Hide Add server and Delete server buttons.
Add Update server button.
Add server/update view to edit the server addresses.
Diffstat (limited to 'ogcp/forms/action_forms.py')
-rw-r--r-- | ogcp/forms/action_forms.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index b97ff4d..b4dfe7b 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -276,6 +276,14 @@ class ServerForm(FlaskForm): validators=[InputRequired()]) submit = SubmitField(label=_l('Submit')) +class ServerConfigurationForm(FlaskForm): + server_addr = HiddenField() + addr = FieldList( + StringField(label=_l('Address')), + label=_l('Addresses'), + ) + submit = SubmitField(label=_l('Submit')) + class DeleteRepositoryForm(FlaskForm): repository = SelectField(label=_l('Repository'), validators=[InputRequired()]) |