Merge remote-tracking branch 'origin/main'
This commit is contained in:
@@ -13,7 +13,7 @@ class FeedbackForm(forms.Form):
|
|||||||
name = forms.CharField(label=_('Имя'), required=True)
|
name = forms.CharField(label=_('Имя'), required=True)
|
||||||
company = forms.CharField(label=_('Компания'), required=True)
|
company = forms.CharField(label=_('Компания'), required=True)
|
||||||
|
|
||||||
contacts = forms.CharField(label=_('Контактные данные'), required=True)
|
contacts = forms.CharField(label=_('Ваш email или телефон'), required=True)
|
||||||
description = forms.CharField(label=_('Тематика запроса'), required=True)
|
description = forms.CharField(label=_('Тематика запроса'), required=True)
|
||||||
|
|
||||||
agreement = forms.BooleanField(
|
agreement = forms.BooleanField(
|
||||||
|
|||||||
@@ -15,8 +15,9 @@ from django.template.loader import render_to_string
|
|||||||
from django.urls import reverse
|
from django.urls import reverse
|
||||||
from .funcs import *
|
from .funcs import *
|
||||||
from django.utils.translation import activate, get_language_info
|
from django.utils.translation import activate, get_language_info
|
||||||
|
from django.views.decorators.csrf import csrf_exempt
|
||||||
|
|
||||||
|
@csrf_exempt
|
||||||
def get_content_for_section_ajax(request):
|
def get_content_for_section_ajax(request):
|
||||||
|
|
||||||
if request.method != 'POST':
|
if request.method != 'POST':
|
||||||
|
|||||||
@@ -27,6 +27,8 @@ DEBUG = True
|
|||||||
|
|
||||||
ALLOWED_HOSTS = ['*']
|
ALLOWED_HOSTS = ['*']
|
||||||
|
|
||||||
|
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||||
|
CSRF_TRUSTED_ORIGINS = ['https://aerbim.com']
|
||||||
|
|
||||||
# Application definition
|
# Application definition
|
||||||
|
|
||||||
|
|||||||
@@ -450,8 +450,8 @@ body.n_scroll{
|
|||||||
|
|
||||||
.photo_container_descript_process{
|
.photo_container_descript_process{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 65px;
|
width: 150px;
|
||||||
height: 65px;
|
height: 150px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.txt_descript_process.standart_txt{
|
.txt_descript_process.standart_txt{
|
||||||
@@ -463,8 +463,8 @@ body.n_scroll{
|
|||||||
/*text-transform: uppercase;*/
|
/*text-transform: uppercase;*/
|
||||||
}
|
}
|
||||||
.img_descript_process{
|
.img_descript_process{
|
||||||
width: 65px;
|
width: 150px;
|
||||||
height: 65px;
|
height: 150px;
|
||||||
object-fit: contain;
|
object-fit: contain;
|
||||||
object-position: bottom;
|
object-position: bottom;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,6 +43,7 @@ function renderContent (el=null) {
|
|||||||
} else {
|
} else {
|
||||||
data['section_url'] = el.dataset['url']
|
data['section_url'] = el.dataset['url']
|
||||||
}
|
}
|
||||||
|
data['csrfmiddlewaretoken'] = $('input[name=csrfmiddlewaretoken]').val();
|
||||||
let language = $('html').attr('lang');
|
let language = $('html').attr('lang');
|
||||||
data['lang'] = language
|
data['lang'] = language
|
||||||
$.ajax({
|
$.ajax({
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="block_overlay hide"></div>
|
<div class="block_overlay hide"></div>
|
||||||
{% include "blocks/b_header.html" %}
|
{% include "blocks/b_header.html" %}
|
||||||
{% include "blocks/b_curtain.html" %}
|
{% include "blocks/b_curtain.html" %}
|
||||||
|
|||||||
Reference in New Issue
Block a user