0.0.276
This commit is contained in:
@@ -832,36 +832,38 @@ function RequestCommercialOffer (el){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
// function SendFeedbackForm (el){
|
function SendFeedbackForm (el){
|
||||||
//
|
|
||||||
// event.preventDefault()
|
event.preventDefault()
|
||||||
// let form = el.form;
|
let form = el.form;
|
||||||
// let formData = new FormData(form);
|
let formData = new FormData(form);
|
||||||
//
|
let form_name = form.dataset['name']
|
||||||
//
|
formData.set('form_name',form_name)
|
||||||
//
|
|
||||||
//
|
|
||||||
// $.ajax({
|
|
||||||
// headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
|
||||||
// url: '/user_account/request_offer/',
|
$.ajax({
|
||||||
// type: "POST",
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
// // async: true,
|
// url: '/user_account/request_offer/',
|
||||||
// cache: false,
|
type: "POST",
|
||||||
// processData: false,
|
// async: true,
|
||||||
// contentType: false,
|
cache: false,
|
||||||
// // enctype: 'json',
|
processData: false,
|
||||||
// data: formData,
|
contentType: false,
|
||||||
// success: function(data){
|
// enctype: 'json',
|
||||||
//
|
data: formData,
|
||||||
// // location.href = '/profile'
|
success: function(data){
|
||||||
//
|
|
||||||
//
|
// location.href = '/profile'
|
||||||
// },
|
|
||||||
// error: function (data, exception){
|
|
||||||
// // document.querySelector(".login").innerHTML = data.responseJSON.html
|
},
|
||||||
// }
|
error: function (data, exception){
|
||||||
// });
|
// document.querySelector(".login").innerHTML = data.responseJSON.html
|
||||||
// }
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,11 @@
|
|||||||
<span id="sub_title_static">{% translate "Пожалуйста опишите Ваш вопрос максимально подробно, а также укажите Ваш e-mail для обратной связи." %}</span>
|
<span id="sub_title_static">{% translate "Пожалуйста опишите Ваш вопрос максимально подробно, а также укажите Ваш e-mail для обратной связи." %}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<form>
|
<form
|
||||||
|
{% if page.url == 'contacts' %} data-name="msg_from_contacts"{% endif %}
|
||||||
|
{% if page.url == 'about_service' %} data-name="msg_from_about_service"{% endif %}
|
||||||
|
{% if page.url == 'customer_service' %} data-name="msg_from_customer_service"{% endif %}
|
||||||
|
>
|
||||||
<div class="left_inputs_form">
|
<div class="left_inputs_form">
|
||||||
<div class="inputs_l">
|
<div class="inputs_l">
|
||||||
<input name="username" type="text" placeholder="{% translate 'Имя' %}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
<input name="username" type="text" placeholder="{% translate 'Имя' %}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||||
|
|||||||
Reference in New Issue
Block a user