diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-08-31 17:45:20 +0200 |
---|---|---|
committer | Javier Sánchez Parra <jsanchez@soleta.eu> | 2022-09-07 17:49:15 +0200 |
commit | cf02e0c051e664cdfd77162fac3a7c8302620324 (patch) | |
tree | 494e05e3c118848770ae40beb9a8b11e001ec5f1 /ogcp/forms | |
parent | 7039b2942611f605f610888e6c7970135f4b67e4 (diff) |
Add Servers section
In Servers section/view, users can add or delete ogServers from ogCP
configuration file.
Replaces Repositories views and recycle some of its code.
Diffstat (limited to 'ogcp/forms')
-rw-r--r-- | ogcp/forms/action_forms.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index dcf4965..d1789a7 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -194,11 +194,15 @@ class ImageDetailsForm(FlaskForm): permissions = StringField(label=_l('Permissions')) software_id = StringField(label=_l('Software id')) -class RepositoryForm(FlaskForm): +class ServerForm(FlaskForm): name = StringField(label=_l('Name'), validators=[InputRequired()]) ip = StringField(label=_l('IP'), validators=[InputRequired()]) + port = StringField(label=_l('Port'), + validators=[InputRequired()]) + api_token = StringField(label=_l('API token'), + validators=[InputRequired()]) submit = SubmitField(label=_l('Submit')) class DeleteRepositoryForm(FlaskForm): |