From e978c30b9ffd60b5c7a8e05cf193c1b11a6f87ba Mon Sep 17 00:00:00 2001 From: Roberto Hueso Gómez Date: Wed, 21 Oct 2020 14:38:44 +0200 Subject: Add client hardware action This action lists all the hardware items in a client. --- ogcp/forms/action_forms.py | 4 ++++ ogcp/templates/scopes.html | 2 ++ ogcp/views.py | 21 ++++++++++++++++++++- 3 files changed, 26 insertions(+), 1 deletion(-) (limited to 'ogcp') diff --git a/ogcp/forms/action_forms.py b/ogcp/forms/action_forms.py index ac761f5..39dae81 100644 --- a/ogcp/forms/action_forms.py +++ b/ogcp/forms/action_forms.py @@ -29,6 +29,10 @@ class PartitionForm(FlaskForm): modify = SubmitField(label=_('Modify')) delete = SubmitField(label=_('Delete')) +class HardwareForm(FlaskForm): + ips = HiddenField() + refresh = SubmitField(label=_('Refresh')) + class ClientDetailsForm(FlaskForm): name = StringField(label=_('Name')) ip = StringField(label=_('IP')) diff --git a/ogcp/templates/scopes.html b/ogcp/templates/scopes.html index 5b506a6..460fc3e 100644 --- a/ogcp/templates/scopes.html +++ b/ogcp/templates/scopes.html @@ -40,6 +40,8 @@ formaction="{{ url_for('action_reboot') }}" formmethod="post"> +