From 9dba2dead5d8ae2b458750c41bb830762859de55 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 28 Nov 2023 15:36:57 +0300 Subject: [PATCH] 0.0.22 present_technology block --- GeneralApp/models.py | 5 +++-- ServicesApp/js_views.py | 2 +- templates/blocks/b_present_technology.html | 10 ++++++++++ ...jectiing_section.html => c_blocks_constructor.html} | 2 ++ 4 files changed, 16 insertions(+), 3 deletions(-) create mode 100644 templates/blocks/b_present_technology.html rename templates/pages/content/{c_projectiing_section.html => c_blocks_constructor.html} (86%) diff --git a/GeneralApp/models.py b/GeneralApp/models.py index 362b6f1..beb1957 100644 --- a/GeneralApp/models.py +++ b/GeneralApp/models.py @@ -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', _('Форма обратной связи')), diff --git a/ServicesApp/js_views.py b/ServicesApp/js_views.py index 94cd665..d7caecd 100644 --- a/ServicesApp/js_views.py +++ b/ServicesApp/js_views.py @@ -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, diff --git a/templates/blocks/b_present_technology.html b/templates/blocks/b_present_technology.html new file mode 100644 index 0000000..566549b --- /dev/null +++ b/templates/blocks/b_present_technology.html @@ -0,0 +1,10 @@ + + + + + Title + + + + + \ No newline at end of file diff --git a/templates/pages/content/c_projectiing_section.html b/templates/pages/content/c_blocks_constructor.html similarity index 86% rename from templates/pages/content/c_projectiing_section.html rename to templates/pages/content/c_blocks_constructor.html index 91cb49f..bb31bc7 100644 --- a/templates/pages/content/c_projectiing_section.html +++ b/templates/pages/content/c_blocks_constructor.html @@ -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 %}