0.0.22 present_technology block

This commit is contained in:
SDE
2023-11-28 15:36:57 +03:00
parent 02e708d664
commit 9dba2dead5
4 changed files with 16 additions and 3 deletions

View File

@@ -18,8 +18,9 @@ class StaticPage(BaseModelViewPage):
block_type_choices = (
('photo_n_text', _('Фото + текст')),
('photo150_n_title', _('Фото 150x150 + заголовок')),
('photo_n_text', _('Фото с одной стороны + Текст с другой стороны')),
('present_technology_block', _('описание и НАЗВАНИЕ слева + Картинка справа')),
('photo150_n_title', _('Фото 150x150 сверху + заголовок под фото')),
('how_work', _('Как с нами работать')),
('how_dev', _('Как ведется разработка')),
('feedback_form', _('Форма обратной связи')),

View File

@@ -59,7 +59,7 @@ def get_content_for_section_ajax(request):
}
html = render_to_string('pages/content/c_projectiing_section.html', Dict, request=request)
html = render_to_string('pages/content/c_blocks_constructor.html', Dict, request=request)
res_Dict = {
'html': html,

View File

@@ -0,0 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>

View File

@@ -10,6 +10,8 @@
{% include 'forms/f_consultation.html' %}
{% elif block.block_type == 'how_dev' %}
{% include 'blocks/b_how_dev.html' %}
{% elif block.block_type == 'present_technology_block' %}
{% include 'blocks/b_present_technology.html' %}
{% endif %}