summaryrefslogtreecommitdiffstats
path: root/ogcp/templates/actions
diff options
context:
space:
mode:
authorJavier Hernandez <jhernandez@soleta.eu>2024-02-05 12:07:35 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-05 12:08:48 +0100
commit7955baf35c46515e6b845d6805b3d8b55f0eb27d (patch)
tree8ead62be7cca3e3481d59b50d179ea7ef52d1782 /ogcp/templates/actions
parent6153ca426f9f880c70564ecb2d5346d64c2802eb (diff)
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.
Diffstat (limited to 'ogcp/templates/actions')
-rw-r--r--ogcp/templates/actions/client_add.html19
1 files changed, 19 insertions, 0 deletions
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 %}
+
+<h1 class="m-5">{{_('Add client')}}</h1>
+
+{{ wtf.quick_form(form,
+ method='post',
+ button_map={'submit': 'primary'},
+ extra_classes="mx-5") }}
+
+{% endblock %}