From dc1c6304646a3b9a059e23a74324afb2eefb415c Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 15 Jul 2024 13:43:16 +0200 Subject: templates: make ClientDetailsForm render more compact Make the client form more compact so the user does not require to scroll to view all the information. Place each label and field in the same row of the form layout. Disable the Maintenance and Remote fields as they have not actual functionality. --- ogcp/templates/actions/client_details.html | 72 ++++++++++++++++++++++++++++-- 1 file changed, 68 insertions(+), 4 deletions(-) (limited to 'ogcp') diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index b7d0615..03c761e 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -11,10 +11,74 @@

{{_('Client details')}}

-{{ wtf.quick_form(form, - method='post', - button_map={'submit': 'primary'}, - extra_classes="mx-5") }} +
+
+ {{ form.hidden_tag() }} + + {{ form.server() }} + {{ form.folder_id() }} + +
+ +
+ {{ form.name(class="form-control") }} +
+
+ +
+ +
+ {{ form.ip(class="form-control") }} +
+
+ +
+ +
+ {{ form.mac(class="form-control") }} +
+
+ +
+ +
+ {{ form.serial_number(class="form-control") }} +
+
+ +
+ +
+ {{ form.livedir(class="form-control") }} +
+
+ +
+ +
+ {{ form.repo(class="form-control") }} +
+
+ +
+ +
+ {{ form.room(class="form-control") }} +
+
+ +
+ +
+ {{ form.boot(class="form-control") }} +
+
+ +
+ {{ form.submit(class="btn btn-primary") }} +
+
+
-- cgit v1.2.3-18-g5258