0.0.98
This commit is contained in:
@@ -499,6 +499,7 @@ body.n_scroll{
|
||||
}
|
||||
|
||||
.label_consultation_form{
|
||||
color: #000000;
|
||||
padding-left: 20px;
|
||||
padding-bottom: 15px;
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
<div class="cut-width">
|
||||
<div class="form_consultation_container" >
|
||||
<div class="top_border_gradient"></div>
|
||||
<form class="form_consultation">
|
||||
<form name="form_consultation" class="form_consultation">
|
||||
<div class="container_content_form_consultation">
|
||||
<div class="description_form_consultation">
|
||||
<div class="medium_txt title_form_consultation">
|
||||
@@ -16,10 +16,10 @@
|
||||
<button class="button_form_consultation">{{ block.but_title }}</button>
|
||||
</div>
|
||||
<div class="form_consultation_content">
|
||||
<input class="input_form_consultation" id="id_name" name="name" placeholder="{% translate 'Имя' %}">
|
||||
<input class="input_form_consultation" id="id_company" name="company" placeholder="{% translate 'Компания' %}">
|
||||
<input class="input_form_consultation" id="id_contacts" name="contacs" placeholder="{% translate 'Контактные данные' %}">
|
||||
<label class="label_consultation_form standart_txt" for="id_consultation_topic">{% translate 'Тема консультации' %}</label>
|
||||
<input class="input_form_consultation" id="id_name" name="name" placeholder="{{ feedback_form.name.label }}">
|
||||
<input class="input_form_consultation" id="id_company" name="company" placeholder="{{ feedback_form.company.label }}">
|
||||
<input class="input_form_consultation" id="id_contacts" name="contacs" placeholder="{{ feedback_form.contacts.label }}">
|
||||
<label class="label_consultation_form standart_txt" for="id_consultation_topic">{{ feedback_form.description.label }}</label>
|
||||
<textarea class="textarea_form_consultation" id="id_consultation_topic" name="consultation_topic"></textarea>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user