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)
|
||||
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)
|
||||
|
||||
agreement = forms.BooleanField(
|
||||
|
||||
@@ -15,8 +15,9 @@ from django.template.loader import render_to_string
|
||||
from django.urls import reverse
|
||||
from .funcs import *
|
||||
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):
|
||||
|
||||
if request.method != 'POST':
|
||||
|
||||
@@ -27,6 +27,8 @@ DEBUG = True
|
||||
|
||||
ALLOWED_HOSTS = ['*']
|
||||
|
||||
SECURE_PROXY_SSL_HEADER = ('HTTP_X_FORWARDED_PROTO', 'https')
|
||||
CSRF_TRUSTED_ORIGINS = ['https://aerbim.com']
|
||||
|
||||
# Application definition
|
||||
|
||||
|
||||
@@ -450,8 +450,8 @@ body.n_scroll{
|
||||
|
||||
.photo_container_descript_process{
|
||||
text-align: center;
|
||||
width: 65px;
|
||||
height: 65px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
}
|
||||
|
||||
.txt_descript_process.standart_txt{
|
||||
@@ -463,8 +463,8 @@ body.n_scroll{
|
||||
/*text-transform: uppercase;*/
|
||||
}
|
||||
.img_descript_process{
|
||||
width: 65px;
|
||||
height: 65px;
|
||||
width: 150px;
|
||||
height: 150px;
|
||||
object-fit: contain;
|
||||
object-position: bottom;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,7 @@ function renderContent (el=null) {
|
||||
} else {
|
||||
data['section_url'] = el.dataset['url']
|
||||
}
|
||||
data['csrfmiddlewaretoken'] = $('input[name=csrfmiddlewaretoken]').val();
|
||||
let language = $('html').attr('lang');
|
||||
data['lang'] = language
|
||||
$.ajax({
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
</head>
|
||||
<body>
|
||||
{% csrf_token %}
|
||||
{% csrf_token %}
|
||||
<div class="block_overlay hide"></div>
|
||||
{% include "blocks/b_header.html" %}
|
||||
{% include "blocks/b_curtain.html" %}
|
||||
|
||||
Reference in New Issue
Block a user