Commit 35c96cad by Saliya Randunu

S12523741 # Client - Incoming Issues (raised by Client) #UX is not forcing selection of a Plan

parent 76f004ae
...@@ -6200,6 +6200,18 @@ label, label .label-title span { ...@@ -6200,6 +6200,18 @@ label, label .label-title span {
.manage-plan-hidden-info {display: none; } .manage-plan-hidden-info {display: none; }
.oneit-radio.checked .manage-plan-hidden-info {display: block;} .oneit-radio.checked .manage-plan-hidden-info {display: block;}
.overlayx {
display: none;
width: 100%;
height: 100%;
min-height: 100%;
position: fixed; /* Stay in place */
z-index: 1000; /* Sit on top */
left: 0;
top: 0;
background-color: transparent;
}
.subscription-billed { .subscription-billed {
height: 60px; height: 60px;
width: 100%; width: 100%;
......
...@@ -38,6 +38,7 @@ ...@@ -38,6 +38,7 @@
%> %>
<script type="text/javascript"> <script type="text/javascript">
var Popup = null; var Popup = null;
var PopupCoupon = null;
$(document).ready(function() $(document).ready(function()
{ {
setTabingSideBarHeight(); setTabingSideBarHeight();
...@@ -49,16 +50,18 @@ ...@@ -49,16 +50,18 @@
overlay : true, overlay : true,
width : 600, height : 640 width : 600, height : 640
}); });
PopupCoupon = new jBox('Modal', {
id : "change-plan",
overlay : true,
width : 500, height : 400
});
var isinvliadCoupon = getParameterByName("invalidcoupon"); var isinvliadCoupon = getParameterByName("invalidcoupon");
if (isinvliadCoupon==='true'){ if (isinvliadCoupon==='true'){
PopupCoupon = new jBox('Modal', { PopupCoupon.setContent($("#invalid-coupon-popup"));
id : "change-plan", PopupCoupon.open();
overlay : true, content : $("#invalid-coupon-popup") ,
width : 500, height : 400
});
PopupCoupon.open();
} }
$(".invalid-coupon-close-button").on("click",function(){ $(".invalid-coupon-close-button").on("click",function(){
...@@ -77,14 +80,42 @@ ...@@ -77,14 +80,42 @@
$(".manage-plan-row input").on("change", function(){ $(".manage-plan-row input").on("change", function(){
setTabingSideBarHeight(); setTabingSideBarHeight();
}); });
disableOutSideWhileChoosePlan();
$(document).on("click",".plan-selection input",function(e)
{
disableOutSideWhileChoosePlan();
});
}); });
function disableOutSideWhileChoosePlan(){
if ($(".manage-plan-hidden-info").is(":visible")){
if(!$(".choose-plan-item.active").length){
$("a ").each(function(){
if ( !$(this).parents(".choose-plan-wrap").length ) {
if($(this).prop("tagName") === "A"){
$(this).prop("onclick", null).off("click");
$(this).css("cursor","arrow").click(function(){
PopupCoupon.setContent($("#force-to-choose-popup"));
PopupCoupon.open();
return false;
});
}
}
});
}
}
}
function paymentPlanChanged() function paymentPlanChanged()
{ {
$("#savePaymentPlan").click(); $("#savePaymentPlan").click();
} }
</script> </script>
<div class="overlayx"></div>
<div class="container-fluid"> <div class="container-fluid">
<div class="row content"> <div class="row content">
<div class="main-content-area"> <div class="main-content-area">
...@@ -110,6 +141,7 @@ ...@@ -110,6 +141,7 @@
<div class="company-content-area"> <div class="company-content-area">
<!-- Tab panes --> <!-- Tab panes -->
<div class="tab-content"> <div class="tab-content">
<div class="choose-plan-wrap">
<div class="tab-pane active" id="company-detail"> <div class="tab-pane active" id="company-detail">
<div> <div>
<div class="tabpage-title manage-plan"> <div class="tabpage-title manage-plan">
...@@ -156,7 +188,7 @@ ...@@ -156,7 +188,7 @@
<div class="rectangle-5"> <div class="rectangle-5">
<div class="manage-plan-row"> <div class="manage-plan-row">
<div class="radio"> <div class="radio">
<label> <label class="plan-selection">
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="IsPPJ" value="true" onchange="paymentPlanChanged()"/> <oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="IsPPJ" value="true" onchange="paymentPlanChanged()"/>
</label> </label>
</div> </div>
...@@ -191,7 +223,7 @@ ...@@ -191,7 +223,7 @@
<div class="rectangle-5"> <div class="rectangle-5">
<div class="manage-plan-row"> <div class="manage-plan-row">
<div class="radio"> <div class="radio">
<label> <label class="plan-selection">
<oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="IsPPJ" value="false"/> <oneit:ormInput obj="<%= hiringTeam %>" type="radio" attributeName="IsPPJ" value="false"/>
</label> </label>
</div> </div>
...@@ -421,6 +453,32 @@ ...@@ -421,6 +453,32 @@
Looking to cancel your account? Please <a href="http://www.talentology.com/">contact us.</a> Looking to cancel your account? Please <a href="http://www.talentology.com/">contact us.</a>
</div> </div>
</div> </div>
<div id="invalid-coupon-popup" style="display:none" >
<div class="change-plan-content">
<h3>Oops!</h3>
<div class="upgrade-info">
<span>We're having some difficulty validating your coupon. <br> Please check the code supplied and try again</span>
<span>For further assitance, please <a href="http://www.talentology.com/">contact us</a></span>
</div>
</div>
<div class="change-plan-button">
<a class="invalid-coupon-close-button popup-no-button">Close & Retry</a>
</div>
</div>
<div id="force-to-choose-popup" style="display:none" >
<div class="change-plan-content">
<h3>Alert!</h3>
<div class="upgrade-info">
<span>You must select your plan before continue. <br>Try again</span>
</div>
</div>
<div class="change-plan-button">
<a class="invalid-coupon-close-button popup-no-button">Close & Retry</a>
</div>
</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -429,19 +487,7 @@ ...@@ -429,19 +487,7 @@
</div> </div>
</div> </div>
<div id="invalid-coupon-popup" style="display:none" >
<div class="change-plan-content">
<h3>Oops!</h3>
<div class="upgrade-info">
<span>We're having some difficulty validating your coupon. <br> Please check the code supplied and try again</span>
<span>For further assitance, please <a href="http://www.talentology.com/">contact us</a></span>
</div>
</div>
<div class="change-plan-button">
<a class="invalid-coupon-close-button popup-no-button">Close & Retry</a>
</div>
</div>
</oneit:dynIncluded> </oneit:dynIncluded>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment