diff --git a/static/css/styles.css b/static/css/styles.css index e066f3c..09ddb66 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -756,6 +756,19 @@ button#send_upgrade:hover { color: #ff0000; } +.info_text_wrapper{ + padding-top: 20px; + text-align: center; + color: red; +} + +.info_text{ + display: none; +} +.info_text.show{ + display: block; + +} .header-second-item, diff --git a/static/js/user_profile.js b/static/js/user_profile.js index 68514f1..0d84835 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -675,7 +675,7 @@ function confirmUpgrade(el, routeID){ let editButton = document.getElementById('edit_route_' + routeID) - if(url === '/routes/highlight_route/'){ + if(url === '/routes/highlight_route/' && !remainsHighlightCount[0].innerText === '0'){ el_route.classList.add('highlight-color'); editButton.classList.add('highlight-color') document.getElementById('control_frame_' + routeID).classList.remove('show') diff --git a/static/js/user_profile_2.js b/static/js/user_profile_2.js index 7733fd1..ebc6a91 100644 --- a/static/js/user_profile_2.js +++ b/static/js/user_profile_2.js @@ -118,6 +118,8 @@ function select_tab_profile (el,url,owner_type=null, check_orders_required) { }); } + + function checkStatesAfterTransitionToAnotherTabProfile () { // check which page if profile - do if (window.location.href.includes('profile')){ diff --git a/templates/widgets/w_carrier_card.html b/templates/widgets/w_carrier_card.html index b88be4e..f76d575 100644 --- a/templates/widgets/w_carrier_card.html +++ b/templates/widgets/w_carrier_card.html @@ -8,7 +8,7 @@ {% if departure_date_string < current_date %}