This commit is contained in:
SBD
2023-12-09 16:35:39 +03:00
parent 83f5fb2e86
commit b3c6ca20bb
3 changed files with 31 additions and 6 deletions

View File

@@ -499,6 +499,7 @@ body.n_scroll{
}
.label_consultation_form{
color: #000000;
padding-left: 20px;
padding-bottom: 15px;
}

View File

@@ -231,4 +231,28 @@ function autoPlaySlider () {
// if (autoplayInterval){
// clearInterval(autoplayInterval)
// }
// }
// }
// form consultation
function sendFormConsultation (el){
let form = el.form
let formData = new FormData(form)
$.ajax({
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
url: '/get_content_for_section/',
type: "POST",
// async: true,
cache: false,
processData: false,
// contentType: false,
// enctype: 'json',
contentType: "application/json; charset=utf-8",
data: formData,
success: function(data){
},
error: function (data){
alert(data.errors)
}
});
}