From a21c6044461097a8551efd7bbcae2cd4d466fb07 Mon Sep 17 00:00:00 2001 From: Sawyer Bergeron Date: Wed, 22 May 2019 10:13:03 -0400 Subject: Make steps possible to hide/show Change-Id: Ice5036ea9801655032cb080537fbd471fb3fda3e Signed-off-by: Sawyer Bergeron --- src/templates/workflow/viewport-base.html | 94 +++++++++++++++++++++---------- 1 file changed, 65 insertions(+), 29 deletions(-) (limited to 'src/templates') diff --git a/src/templates/workflow/viewport-base.html b/src/templates/workflow/viewport-base.html index 1329595..beea7d2 100644 --- a/src/templates/workflow/viewport-base.html +++ b/src/templates/workflow/viewport-base.html @@ -52,64 +52,104 @@ } #breadcrumbs { - padding: 4px; + margin-bottom: 0; } + + .btn_wrapper { + margin: 0; + } + .step{ - background: #DEEED3; display: inline; - padding: 5px; + padding: 7px; margin: 1px; + font-size: 14pt; + cursor: default; + } + .step:active { + -webkit-box-shadow: inherit; + box-shadow: inherit; + } + .step_active:active { + -webkit-box-shadow: inherit; + box-shadow: inherit; } .step_active{ - background: #5EC392; display: inline; - padding: 5px; + padding: 7px; margin: 1px; - font-weight: bold; + cursor: default; + font-size: 14pt; + padding-bottom: 4px !important; + border-bottom: 4px solid #41ba78 !important; } - .step_untouched + .step_hidden { - background: #DDDDDD; + background: #EFEFEF; + color: #999999; } - .step_invalid + .step_invalid::after { - background: #CC3300; + content: " \2612"; + color: #CC3300; } - .step_valid + .step_valid::after { - background: #0FD57D; + content: " \2611"; + color: #41ba78; } - .iframe_div { + .step_untouched::after + { + content: " \2610"; + } + .iframe_div { width: calc(100% - 450px); margin-left: 70px; height: calc(100vh - 155px); position: absolute; border: none; } + .iframe_elem { width: 100%; height: calc(100vh - 155px); border: none; } + + #breadcrumbs { + background-color: inherit; + } + + #breadcrumbs.breadcrumb > li { + border: 1px solid #cccccc; + border-left: none; + } + #breadcrumbs.breadcrumb > li:first-child { + border-left: 1px solid #cccccc; + } + #breadcrumbs.breadcrumb > li + li:before { + content: ""; + width: 0; + margin: 0; + padding: 0; + } - - + +
- +
{% csrf_token %} @@ -153,14 +193,7 @@ return; } } - if( to >= page_count ) - { - to = page_count-1; - } - else if( to < 0 ) - { - to = 0; - } + var problem = function() { alert("There was a problem"); } @@ -271,7 +304,7 @@ } function create_step(step_json, active){ - var step_dom = document.createElement("DIV"); + var step_dom = document.createElement("li"); if(active){ step_dom.className = "step_active"; @@ -301,6 +334,10 @@ stat = "valid"; msg = step_json['message']; } + if( step_json['enabled'] == false ) + { + step_dom.classList.add("step_hidden"); + } if(active) { update_message(msg, stat); @@ -308,7 +345,6 @@ step_dom.classList.add("btn"); var step_number = step_json['index']; - step_dom.onclick = function(){ go(step_number); } return step_dom; } -- cgit 1.2.3-korg