diff options
author | Sawyer Bergeron <sbergeron@iol.unh.edu> | 2022-12-16 22:08:06 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2022-12-16 22:08:06 +0000 |
commit | 8ddc7e820e120f1dde4e901d3cb6f1dd3f281e65 (patch) | |
tree | b8251f8703550bbdce86239364749025aafccbb8 /src/templates/base | |
parent | 1773e2b7fc4564e693dfbf29074374379ed86ebb (diff) | |
parent | 4edb8881357e043fd7ea15efeb2d592c9fb55efc (diff) |
Merge "Laas Dashboard Front End Improvements"
Diffstat (limited to 'src/templates/base')
-rw-r--r-- | src/templates/base/resource/steps/pod_definition.html | 41 | ||||
-rw-r--r-- | src/templates/base/workflow/confirm.html | 8 | ||||
-rw-r--r-- | src/templates/base/workflow/viewport-base.html | 4 |
3 files changed, 26 insertions, 27 deletions
diff --git a/src/templates/base/resource/steps/pod_definition.html b/src/templates/base/resource/steps/pod_definition.html index 83c4fcb..233d995 100644 --- a/src/templates/base/resource/steps/pod_definition.html +++ b/src/templates/base/resource/steps/pod_definition.html @@ -39,27 +39,32 @@ </form> <script> //gather context data - let debug = false; - {% if debug %} - debug = true; - {% endif %} + try { + let debug = false; + {% if debug %} + debug = true; + {% endif %} - const False = false; - const True = true; + const False = false; + const True = true; - let resources = {{resources|safe}}; - let networks = {{networks|safe}}; + let resources = {{resources|safe}}; + let networks = {{networks|safe}}; + + network_step = new NetworkStep( + debug, + resources, + networks, + document.getElementById('graphContainer'), + document.getElementById('outlineContainer'), + document.getElementById('toolbarContainer'), + document.getElementById('sidebarContainer') + ); + form_submission_callbacks.push(() => network_step.prepareForm()); + } catch (e) { + console.log(e) + } - network_step = new NetworkStep( - debug, - resources, - networks, - document.getElementById('graphContainer'), - document.getElementById('outlineContainer'), - document.getElementById('toolbarContainer'), - document.getElementById('sidebarContainer') - ); - form_submission_callbacks.push(() => network_step.prepareForm()); </script> {% endblock content %} {% block onleave %} diff --git a/src/templates/base/workflow/confirm.html b/src/templates/base/workflow/confirm.html index 2f99a41..bc8e4e3 100644 --- a/src/templates/base/workflow/confirm.html +++ b/src/templates/base/workflow/confirm.html @@ -43,16 +43,10 @@ { select.value = "True"; submitStepForm(); + pop_workflow(); } function formcancel() { - select.value = "False"; - submitStepForm(); - } - - var confirmed = {{confirm_succeeded|default:"false"}}; - if( confirmed ) - { pop_workflow(); } </script> diff --git a/src/templates/base/workflow/viewport-base.html b/src/templates/base/workflow/viewport-base.html index d9648c2..88229ca 100644 --- a/src/templates/base/workflow/viewport-base.html +++ b/src/templates/base/workflow/viewport-base.html @@ -10,7 +10,7 @@ <div class="col"> <nav> <ul class="pagination d-flex flex-row" id="topPagination"> - <li class="page-item flex-shrink-1 page-control"> + <li class="page-item flex-shrink-1 page-control" id="workflow-nav-back"> <a class="page-link" href="#" id="gob" onclick="submit_and_go('prev')"> <i class="fas fa-backward"></i> Back </a> @@ -20,7 +20,7 @@ <i class="far"></i> </a> </li> - <li class="page-item flex-shrink-1 page-control"> + <li class="page-item flex-shrink-1 page-control" id="workflow-nav-next"> <a class="page-link text-right" href="#" id="gof" onclick="submit_and_go('next')"> Next <i class="fas fa-forward"></i> </a> |