From 7955baf35c46515e6b845d6805b3d8b55f0eb27d Mon Sep 17 00:00:00 2001 From: Javier Hernandez Date: Mon, 5 Feb 2024 12:07:35 +0100 Subject: views: preselect pxe boot mode in add client preselect 'pxe' (if available) at adding a new client. use a dedicated template for adding a client and remove irrelevant partition table; client has yet to set its partition, so everytime, the table would load empty. --- ogcp/templates/actions/client_add.html | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 ogcp/templates/actions/client_add.html (limited to 'ogcp/templates/actions/client_add.html') diff --git a/ogcp/templates/actions/client_add.html b/ogcp/templates/actions/client_add.html new file mode 100644 index 0000000..b1c37a5 --- /dev/null +++ b/ogcp/templates/actions/client_add.html @@ -0,0 +1,19 @@ +{% extends parent %} +{% import "bootstrap/wtf.html" as wtf %} + +{% set sidebar_state = 'disabled' %} +{% set btn_back = true %} + +{% block nav_client %} active{% endblock %} +{% block nav_client_details %} active{% endblock %} +{% block nav_client_add %}active{% endblock %} +{% block content %} + +

{{_('Add client')}}

+ +{{ wtf.quick_form(form, + method='post', + button_map={'submit': 'primary'}, + extra_classes="mx-5") }} + +{% endblock %} -- cgit v1.2.3-18-g5258