0.0.285
This commit is contained in:
@@ -804,6 +804,14 @@ function checkDate() {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// const form = document.querySelector('form');
|
||||||
|
// document.querySelector('[type="button"]').addEventListener('click', e => {
|
||||||
|
// if (!form.checkValidity()) {
|
||||||
|
// alert('Хьюстон, у нас проблемы!');
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
|
||||||
function RequestCommercialOffer (el){
|
function RequestCommercialOffer (el){
|
||||||
|
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
@@ -819,7 +827,7 @@ function RequestCommercialOffer (el){
|
|||||||
formData.set('form_name',form_name)
|
formData.set('form_name',form_name)
|
||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||||
url: '/user_account/send_message/',
|
url: '/user_account/send_message/',
|
||||||
type: "POST",
|
type: "POST",
|
||||||
@@ -844,6 +852,10 @@ function RequestCommercialOffer (el){
|
|||||||
// document.querySelector(".login").innerHTML = data.responseJSON.html
|
// document.querySelector(".login").innerHTML = data.responseJSON.html
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// function SendFeedbackForm (el){
|
// function SendFeedbackForm (el){
|
||||||
|
|||||||
@@ -60,7 +60,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form_wrapper">
|
<div class="form_wrapper">
|
||||||
{% include "blocks/static_pages_blocks/b_feedback_form.html" %}
|
{% include "blocks/static_pages_blocks/../../widgets/w_feedback_form.html" %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
{% include "blocks/static_pages_blocks/b_feedback_form.html" %}
|
{% include "blocks/static_pages_blocks/../../widgets/w_feedback_form.html" %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
|
||||||
|
|
||||||
{% include "blocks/static_pages_blocks/b_feedback_form.html" %}
|
{% include "blocks/static_pages_blocks/../../widgets/w_feedback_form.html" %}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<input name="name"
|
<input name="name"
|
||||||
type="text"
|
type="text"
|
||||||
{# {% if form.name %} required{% endif %}#}
|
{# {% if form.name %} required{% endif %}#}
|
||||||
required
|
|
||||||
placeholder="{% translate 'Имя' %}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
placeholder="{% translate 'Имя' %}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||||
{% if form.username and form.errors.username %}
|
{% if form.username and form.errors.username %}
|
||||||
<span>{{ form.errors.name }}</span>
|
<span>{{ form.errors.name }}</span>
|
||||||
@@ -32,14 +32,21 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inputs_l">
|
<div class="inputs_l">
|
||||||
<input name="email" type="email" required placeholder="Е-mail"{% if form.data.email %} value="{{ form.data.email }}"{% endif %}>
|
<input
|
||||||
|
name="email"
|
||||||
|
type="email"
|
||||||
|
|
||||||
|
placeholder="Е-mail"{% if form.data.email %} value="{{ form.data.email }}"{% endif %}>
|
||||||
{% if form.email and form.errors.email %}
|
{% if form.email and form.errors.email %}
|
||||||
<span>{{ form.errors.email }}</span>
|
<span>{{ form.errors.email }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inputs_l">
|
<div class="inputs_l">
|
||||||
<input name="phone" type="tel" required placeholder="{% translate 'Телефон' %}"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
|
<input name="phone"
|
||||||
|
type="tel"
|
||||||
|
|
||||||
|
placeholder="{% translate 'Телефон' %}"{% if form.data.tel %} value="{{ form.data.tel }}"{% endif %}>
|
||||||
{% if form.tel and form.errors.tel %}
|
{% if form.tel and form.errors.tel %}
|
||||||
<span>{{ form.errors.tel }}</span>
|
<span>{{ form.errors.tel }}</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -51,7 +58,7 @@
|
|||||||
<textarea
|
<textarea
|
||||||
name="text_msg"
|
name="text_msg"
|
||||||
onFocus="this.select()"
|
onFocus="this.select()"
|
||||||
required
|
|
||||||
oninput="counterText(this)"
|
oninput="counterText(this)"
|
||||||
id="id_text" class="feedback_form_message"
|
id="id_text" class="feedback_form_message"
|
||||||
placeholder= '{% translate "Сообщение" %}'
|
placeholder= '{% translate "Сообщение" %}'
|
||||||
Reference in New Issue
Block a user