From d63a08e56716358ea4daa30d3050fa01df65a837 Mon Sep 17 00:00:00 2001 From: Jeremy Plsek Date: Fri, 20 Dec 2019 10:50:41 -0500 Subject: js: use npm instead of bower Bower is considered deprecated, so switch to npm. - Update all dependencies - Use npm's version of mxgraph - Use npm's version of jquery - Use npm's version of plotly - Fix mxgraph to use styles and images from the correct location - Removed random csrf token input in nav bar and use js to get csrf token - Remove all calendar and some resource files since they were not used Change-Id: I30d6bd91cded9547caa4c0a5247cd9f214fe9798 Signed-off-by: Jeremy Plsek --- src/templates/base/base.html | 1 - src/templates/base/booking/booking_list.html | 8 ++++---- src/templates/base/booking/stats.html | 2 +- .../base/config_bundle/steps/table_formset.html | 8 ++++---- src/templates/base/dashboard/table.html | 8 ++++---- src/templates/base/layout.html | 18 +++++++----------- src/templates/base/resource/steps/pod_definition.html | 3 +-- src/templates/base/workflow/viewport-base.html | 5 ++++- 8 files changed, 25 insertions(+), 28 deletions(-) (limited to 'src/templates') diff --git a/src/templates/base/base.html b/src/templates/base/base.html index 4011739..6776f7e 100644 --- a/src/templates/base/base.html +++ b/src/templates/base/base.html @@ -75,7 +75,6 @@ Home - {% csrf_token %} Create diff --git a/src/templates/base/booking/booking_list.html b/src/templates/base/booking/booking_list.html index 591ecc9..523c84b 100644 --- a/src/templates/base/booking/booking_list.html +++ b/src/templates/base/booking/booking_list.html @@ -5,11 +5,11 @@ {% block extrahead %} {{ block.super }} - - {% endblock extrahead %} @@ -31,8 +31,8 @@ {% block extrajs %} - - + + + - + + diff --git a/src/templates/base/dashboard/table.html b/src/templates/base/dashboard/table.html index 2b4628e..c55a011 100644 --- a/src/templates/base/dashboard/table.html +++ b/src/templates/base/dashboard/table.html @@ -4,11 +4,11 @@ {% block extrahead %} {{ block.super }} - - {% endblock extrahead %} @@ -29,8 +29,8 @@ {% block extrajs %} - - + + diff --git a/src/templates/base/layout.html b/src/templates/base/layout.html index eac0ac3..f35f1a7 100644 --- a/src/templates/base/layout.html +++ b/src/templates/base/layout.html @@ -13,19 +13,20 @@ OPNFV Laas {{ title }} - - - + + + {% block extrahead %} {% endblock extrahead %} @@ -36,7 +37,6 @@ - {% block extrastyle %} @@ -46,14 +46,10 @@ {% block basecontent %} {% endblock basecontent %} -{##} -{##} -{##} - -{##} + - + {% block extrajs %} {% endblock extrajs %} diff --git a/src/templates/base/resource/steps/pod_definition.html b/src/templates/base/resource/steps/pod_definition.html index a6810de..4b8b296 100644 --- a/src/templates/base/resource/steps/pod_definition.html +++ b/src/templates/base/resource/steps/pod_definition.html @@ -1,6 +1,5 @@ {% extends "workflow/viewport-element.html" %} {% block extrahead %} - Pod Definition Prototype @@ -15,7 +14,7 @@
-
+
Hold right click to drag
diff --git a/src/templates/base/workflow/viewport-base.html b/src/templates/base/workflow/viewport-base.html index bb13ab7..d08145c 100644 --- a/src/templates/base/workflow/viewport-base.html +++ b/src/templates/base/workflow/viewport-base.html @@ -62,9 +62,12 @@ success: update_page }); }); + + // global variable required for mxgraph to load its css and images + mxBasePath = '{% static "node_modules/mxgraph/javascript/src" %}'; - +
-- cgit 1.2.3-korg