diff --git a/static/css/mobile_styles.css b/static/css/mobile_styles.css index e6c235c..c8c99c4 100644 --- a/static/css/mobile_styles.css +++ b/static/css/mobile_styles.css @@ -925,6 +925,10 @@ button#send_feedback_form{ width: 100%; } + button#send_feedback_form:active{ + box-shadow:unset; + background: rgba(255, 97, 58, 0.60); +} /* END feedback_form*/ /* news_page*/ diff --git a/static/css/styles.css b/static/css/styles.css index e924382..ec24906 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -1924,7 +1924,7 @@ button#edit_route { cursor: pointer; } -#error_com_offer, #error_feedback{ +#error_com_offer, #error_feedback, #error_feedback_text{ color: #ff0000; font-size: 14px; margin-left: 5px; @@ -1940,7 +1940,7 @@ button#edit_route { } .form_wrapper{ - position: relative; + margin-top: 120px; } .form_com_wrapper{ @@ -2389,6 +2389,17 @@ button#send_feedback_form{ width: 103%; margin-top: 13px; } +button#send_feedback_form:active{ + box-shadow:unset; + background: rgba(255, 97, 58, 0.60); +} +#error_feedback.hide{ + display: none; +} + +#error_feedback_text.hide{ + display: none; +} .subscribes_container{ width: 80%; diff --git a/static/js/user_profile.js b/static/js/user_profile.js index cbc9921..66cac53 100644 --- a/static/js/user_profile.js +++ b/static/js/user_profile.js @@ -913,6 +913,8 @@ function RequestCommercialOffer (el){ let feedback_form = document.querySelector('.feedback_form') if(feedback_form){ feedback_form.innerHTML = data.responseJSON.html; + // let incorrect_block = document.querySelectorAll('.inputs_l') + } let commercial_offer = document.querySelector('.commercial_offer') @@ -939,6 +941,31 @@ function RequestCommercialOffer (el){ +} + +function hideErrors(el) { + let error_feeedback_text = document.getElementById('error_feedback_text') + let error_feeedback = el.nextElementSibling + let counter_text = document.querySelector('.counter-text') + + + if(error_feeedback === counter_text ){ + error_feeedback_text.classList.add('hide') + }else { + error_feeedback.classList.add('hide') + } + + el.form[3].offsetParent.nextElementSibling + + + + + + // if(el.nextElementSibling === errorFeeedback){ + // errorFeeedback.classList.add('hide') + // } + + } // function SendFeedbackForm (el){ diff --git a/templates/forms/f_feedback_form.html b/templates/forms/f_feedback_form.html index 7c9c274..2cf9f50 100644 --- a/templates/forms/f_feedback_form.html +++ b/templates/forms/f_feedback_form.html @@ -13,12 +13,12 @@ {% if form.form_name %}data-name="{{ form.form_name}}"{% endif %} >