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){
|
||||
|
||||
event.preventDefault()
|
||||
@@ -819,7 +827,7 @@ function RequestCommercialOffer (el){
|
||||
formData.set('form_name',form_name)
|
||||
|
||||
|
||||
$.ajax({
|
||||
$.ajax({
|
||||
headers: { "X-CSRFToken": $('input[name=csrfmiddlewaretoken]').val() },
|
||||
url: '/user_account/send_message/',
|
||||
type: "POST",
|
||||
@@ -844,6 +852,10 @@ function RequestCommercialOffer (el){
|
||||
// document.querySelector(".login").innerHTML = data.responseJSON.html
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
// function SendFeedbackForm (el){
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
</div>
|
||||
|
||||
<div class="form_wrapper">
|
||||
{% include "blocks/static_pages_blocks/b_feedback_form.html" %}
|
||||
{% include "blocks/static_pages_blocks/../../widgets/w_feedback_form.html" %}
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{% 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 %}
|
||||
|
||||
|
||||
{% 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"
|
||||
type="text"
|
||||
{# {% if form.name %} required{% endif %}#}
|
||||
required
|
||||
|
||||
placeholder="{% translate 'Имя' %}" {% if form.data.username %} value="{{ form.data.username }}"{% endif %}>
|
||||
{% if form.username and form.errors.username %}
|
||||
<span>{{ form.errors.name }}</span>
|
||||
@@ -32,14 +32,21 @@
|
||||
</div>
|
||||
|
||||
<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 %}
|
||||
<span>{{ form.errors.email }}</span>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
<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 %}
|
||||
<span>{{ form.errors.tel }}</span>
|
||||
{% endif %}
|
||||
@@ -51,7 +58,7 @@
|
||||
<textarea
|
||||
name="text_msg"
|
||||
onFocus="this.select()"
|
||||
required
|
||||
|
||||
oninput="counterText(this)"
|
||||
id="id_text" class="feedback_form_message"
|
||||
placeholder= '{% translate "Сообщение" %}'
|
||||
Reference in New Issue
Block a user