From f86eaffefe26607c9dbef2f94cf77a883fe38ede Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Fri, 1 Apr 2022 11:41:04 +0200 Subject: Add form for disk selection Disk selection uses "scopesForm" to submit the change, but setup/show view receives new parameters not provided by this form. Commit 17757baa4727 adds those parameters. This commit gives disk selection its own form with all the required parameters. --- ogcp/templates/actions/setup.html | 9 +++++++-- ogcp/views.py | 2 ++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html index d741725..9d8fc28 100644 --- a/ogcp/templates/actions/setup.html +++ b/ogcp/templates/actions/setup.html @@ -9,6 +9,11 @@

{{_('Partition and Format')}}

+
+ + +
+
@@ -22,13 +27,13 @@
- {% for disk in disks %} {% endfor %} - diff --git a/ogcp/views.py b/ogcp/views.py index c3c1fef..2f2e01d 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -408,6 +408,8 @@ def action_setup_show(): disks=disks, form=form, disk_size=disk_size, + ips=ips_str, + base_client=base_client, scopes=scopes) @app.route('/action/setup', methods=['POST']) -- cgit v1.2.3-18-g5258