From: sebdet Date: Wed, 12 Sep 2018 16:51:27 +0000 (+0200) Subject: Introduce new changes to UI X-Git-Tag: 3.0.0~13^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=c95cc5530f73b67537cedec962803b8c3522b3de;hp=74533a8b7abb3f9181a175d80847e651dedda586;p=clamp.git Introduce new changes to UI Introduce changes to support Guard policy Issue-ID: CLAMP-190 Change-Id: I4bffd2ee2a777ee43884fbf03b6128c0198f98ba Signed-off-by: sebdet --- diff --git a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html index 5109c1bf..25cc9a02 100644 --- a/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html +++ b/src/main/resources/META-INF/resources/designer/partials/portfolios/PolicyWindow_properties.html @@ -32,35 +32,6 @@ background-color: #dddd; } -.fileUpload { - position: relative; - overflow: hidden; - margin: 10px; -} - -.fileUpload input.upload { - position: absolute; - top: 0; - right: 0; - margin: 0; - padding: 0; - font-size: 20px; - cursor: pointer; - opacity: 0; - filter: alpha(opacity = 0); - float: left; -} - -.fileDisplay { - display: inline-block; - overflow: hidden; - float: right; - margin-left: 0px; - z-index: initial; - text-align: center; - margin-top: 17px; -} - .modelSearchBox { position: absolute; padding: 25px 12px; @@ -141,28 +112,6 @@ label { } - -
@@ -306,8 +255,7 @@ label {
- +
@@ -331,6 +279,75 @@ label {
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+ +
+ +
+
+
@@ -361,6 +378,20 @@ label { $("#targetResourceIdOther").val(""); } } + + function changeGuardPolicyType() { + console.log("executing GuardPolicyType") + console.log("GuardPolicyType value:"+$("#guardPolicyType").val()) + if ($("#guardPolicyType").val()==="MinMax") { + console.log("executing GuardPolicyType") + $("#minMaxGuardPolicyDiv").show(); + $("#frequencyLimiterGuardPolicyDiv").hide(); + } else if ($("#guardPolicyType").val()==="FrequencyLimiter") { + console.log("executing GuardPolicyType") + $("#minMaxGuardPolicyDiv").hide(); + $("#frequencyLimiterGuardPolicyDiv").show(); + } + } //Basically this method will add a new form. All forms share the same class. When you want one form to show(active form) the other forms get the // css attribute display:none $("#add_one_more").click(function(event) { @@ -466,7 +497,7 @@ label { }); $('input[value="multiselect-all"]').prop('disabled', true).parent('li').addClass('disabled'); } - + changeGuardPolicyType(); } function addSelectListen(count) { @@ -871,6 +902,7 @@ label { setASDCFields(); initTargetResourceId(); + //load metrics dropdown if (elementMap["global"]){ for (var i = 0; i < (elementMap["global"].length); i++){ @@ -889,7 +921,6 @@ label { }; }; }; - //Show table panel only function expandTable() { $(".policyPanel").css("display", "none"); diff --git a/src/main/resources/boot-message.txt b/src/main/resources/boot-message.txt index d8763e26..eea540be 100644 --- a/src/main/resources/boot-message.txt +++ b/src/main/resources/boot-message.txt @@ -1,10 +1,10 @@ + + +╔═╗╔╗╔╔═╗╔═╗ ╔═╗┌─┐┌─┐┌─┐┌┐ ┬ ┌─┐┌┐┌┌─┐┌─┐ +║ ║║║║╠═╣╠═╝ ║ ├─┤└─┐├─┤├┴┐│ ├─┤││││ ├─┤ +╚═╝╝╚╝╩ ╩╩ ╚═╝┴ ┴└─┘┴ ┴└─┘┴─┘┴ ┴┘└┘└─┘┴ ┴ + ╔═╗╦ ╔═╗╔╦╗╔═╗ + ║ ║ ╠═╣║║║╠═╝ + ╚═╝╩═╝╩ ╩╩ ╩╩ - __ __ __ __ __ __ -/ \|\ | /\ |__) __ / ` /\ /__` /\ |__)| /\ |\ |/ ` /\ -\__/| \|/~~\| \__,/~~\.__//~~\|__)|___/~~\| \|\__,/~~\ - -\ __ / __ __ \ __ / - \ / \ / / `| /\ |\/||__) ||| \ / \ / - \\__// \__,|___/~~\| || ||| \\__// - - Starting :: \ No newline at end of file + :: Starting :: \ No newline at end of file