0.0.292 upd error messages for forms
This commit is contained in:
@@ -474,7 +474,12 @@
|
||||
}
|
||||
|
||||
#request_btn{
|
||||
width: 109%;
|
||||
width: 103%;
|
||||
}
|
||||
.bottom_block_static>form>.button_register{
|
||||
padding: 10px 0;
|
||||
width: 97%;
|
||||
margin: unset;
|
||||
}
|
||||
/*END logi_page*/
|
||||
|
||||
@@ -591,7 +596,8 @@
|
||||
padding: unset;
|
||||
}
|
||||
#scroll_to_div>form>.button_register{
|
||||
width: 92%;
|
||||
width: 97%;
|
||||
margin: unset;
|
||||
}
|
||||
span#sub_title_static{
|
||||
/*margin: unset;*/
|
||||
@@ -906,7 +912,7 @@
|
||||
width: 100%;
|
||||
}
|
||||
.inputs_l>input{
|
||||
width: calc(100% - 10px);
|
||||
width: calc(100% - 15px);
|
||||
}
|
||||
.inputs_l{
|
||||
width: 100%;
|
||||
|
||||
@@ -1050,7 +1050,7 @@ section.login>form {
|
||||
|
||||
.inputs_l {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
/*height: 60px;*/
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
@@ -1889,13 +1889,22 @@ button#edit_route {
|
||||
font-size: 24px;
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
background: #FFFFFF;
|
||||
box-shadow: -1px 4px 10px 0px rgba(198, 199, 203, 0.20), 0px -1px 10px 0px rgba(198, 199, 203, 0.20);
|
||||
background: #F8F8F8;
|
||||
z-index: 1;
|
||||
position: absolute;
|
||||
height: 100%;
|
||||
width: 101%;
|
||||
border-radius: 10px;
|
||||
height: -webkit-fill-available;
|
||||
width: -webkit-fill-available;
|
||||
}
|
||||
|
||||
#error_footer{
|
||||
color: #ff0000;
|
||||
font-size: 13px;
|
||||
margin-left: 5px;
|
||||
}
|
||||
#error_com_offer, #error_feedback{
|
||||
color: #ff0000;
|
||||
font-size: 14px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
|
||||
.msg_text {
|
||||
@@ -2202,10 +2211,10 @@ figure{
|
||||
padding: 0px 10px 10px 10px;
|
||||
width: 40%;
|
||||
}
|
||||
.bottom_block_static>.form_com_wrapper>form>.button_register{
|
||||
.bottom_block_static>form>.button_register{
|
||||
margin: auto;
|
||||
padding: 10px;
|
||||
width: 30%;
|
||||
padding: 10px 0;
|
||||
width: 39%;
|
||||
}
|
||||
|
||||
.bottom_block_static>#box1 {
|
||||
@@ -2305,11 +2314,11 @@ figure{
|
||||
/*float: left;*/
|
||||
/*width: 45%;*/
|
||||
display: inline-block;
|
||||
width: 42%;
|
||||
width: 47%;
|
||||
padding-right: 14px;
|
||||
}
|
||||
.right_inputs_form{
|
||||
/*float: right;*/
|
||||
float: right;
|
||||
/*width: 50%;*/
|
||||
width: 50%;
|
||||
display: inline-block;
|
||||
|
||||
@@ -826,17 +826,24 @@ function RequestCommercialOffer (el){
|
||||
event.preventDefault()
|
||||
|
||||
let disable_btn = document.getElementById('send_feedback_form');
|
||||
let disable_btn_r = document.getElementById('request_btn');
|
||||
// let disable_btn_f = document.getElementById('footer_input_button');
|
||||
if(disable_btn){
|
||||
disable_btn.setAttribute('disabled', true);
|
||||
let disable_btn_req = document.getElementById('request_btn');
|
||||
let disable_btn_f = document.getElementById('footer_input_button');
|
||||
|
||||
if(el.id === 'footer_input_button'){
|
||||
disable_btn_f.setAttribute('disabled', true);
|
||||
} else {
|
||||
if(disable_btn){
|
||||
disable_btn.setAttribute('disabled', true);
|
||||
}
|
||||
|
||||
if(disable_btn_req){
|
||||
disable_btn_req.setAttribute('disabled', true);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if(disable_btn_r){
|
||||
disable_btn_r.setAttribute('disabled', true);
|
||||
|
||||
}
|
||||
// disable_btn_f.setAttribute('disabled', true);
|
||||
|
||||
|
||||
let form = el.form;
|
||||
let formData = new FormData(form);
|
||||
@@ -857,12 +864,13 @@ function RequestCommercialOffer (el){
|
||||
success: function(data){
|
||||
|
||||
if(el.id !== 'footer_input_button'){
|
||||
let insert_text = document.querySelector(".feedback_form")
|
||||
let insert_text = document.querySelector(".clear_form")
|
||||
|
||||
if(insert_text){
|
||||
$(data.html).insertBefore(insert_text)
|
||||
}
|
||||
let insert_text_2 = document.querySelector(".form_com_wrapper")
|
||||
|
||||
let insert_text_2 = document.querySelector(".commercial_offer")
|
||||
if(insert_text_2){
|
||||
|
||||
$(data.html).insertBefore(insert_text_2)
|
||||
@@ -872,7 +880,8 @@ function RequestCommercialOffer (el){
|
||||
error: function (data, exception){
|
||||
// document.querySelector(".login").innerHTML = data.responseJSON.html
|
||||
|
||||
let feedback_form = document.querySelector('.feedback_form')
|
||||
if(el.id !== 'footer_input_button'){
|
||||
let feedback_form = document.querySelector('.feedback_form')
|
||||
if(feedback_form){
|
||||
feedback_form.innerHTML = data.responseJSON.html;
|
||||
}
|
||||
@@ -881,6 +890,15 @@ function RequestCommercialOffer (el){
|
||||
if(commercial_offer){
|
||||
commercial_offer.innerHTML = data.responseJSON.html;
|
||||
}
|
||||
} else {
|
||||
let footer_form = document.querySelector('.insert_form').innerHTML = data.responseJSON.html;
|
||||
|
||||
// $(data.responseJSON.html).insertBefore(footer_form)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// document.querySelector(".info_profile").innerHTML = data.html;
|
||||
|
||||
Reference in New Issue
Block a user