From e817c3203fde0ca9bfb66a00919050cbdd1179e8 Mon Sep 17 00:00:00 2001 From: Sean Smith Date: Wed, 24 Feb 2021 12:18:45 -0500 Subject: Front end fixes for enforcing hostname Signed-off-by: Sean Smith Change-Id: I0a077307a2e1bcfef5b31acdaf4ecb73be64fff9 --- src/templates/base/booking/quick_deploy.html | 33 ++++++---------------------- 1 file changed, 7 insertions(+), 26 deletions(-) (limited to 'src/templates/base/booking') diff --git a/src/templates/base/booking/quick_deploy.html b/src/templates/base/booking/quick_deploy.html index c954073..8c8b1df 100644 --- a/src/templates/base/booking/quick_deploy.html +++ b/src/templates/base/booking/quick_deploy.html @@ -18,7 +18,7 @@
-
+
{% bootstrap_field form.purpose %} {% bootstrap_field form.project %} @@ -31,28 +31,19 @@
{% block collab %} -
+
{{ form.users }}
{% endblock collab %} -
+
{% bootstrap_field form.hostname %} {% bootstrap_field form.image %}
- {% block opnfv %} -
-
- OPNFV: (Optional) - {% bootstrap_field form.installer %} - {% bootstrap_field form.scenario %} -
-
- {% endblock opnfv %}
@@ -85,6 +76,10 @@ } } + $(document).ready(function() { + $('.has-popover').popover({'trigger':'hover'}); + }); + var sup_image_dict = {{image_filter | safe}}; var sup_installer_dict = {{installer_filter | safe}}; var sup_scenario_dict = {{scenario_filter | safe}}; @@ -108,25 +103,11 @@ } imageFilter(); - $('#id_installer').children().hide(); - $('#id_scenario').children().hide(); - Array.from(document.getElementsByClassName("grid-item-select-btn")).forEach(function (element) { element.addEventListener('click', imageFilter); }); - function installerHider() { - dropFilter("id_installer", sup_installer_dict, "id_image"); - scenarioHider(); - } - document.getElementById('id_image').addEventListener('change', installerHider); - - function scenarioHider() { - dropFilter("id_scenario", sup_scenario_dict, "id_installer"); - } - document.getElementById('id_installer').addEventListener('change', scenarioHider); - function dropFilter(target, target_filter, master) { var dropdown = document.getElementById(target); -- cgit 1.2.3-korg