From d567866dba0d31ebdcdfcbf3e2b047ab68ba61d7 Mon Sep 17 00:00:00 2001 From: SBD Date: Tue, 28 Nov 2023 16:38:01 +0300 Subject: [PATCH] 0.0.41 --- static/aerbimCSS.css | 16 +++++++++++++ static/aerbimJS.js | 3 --- templates/blocks/b_service_2_col.html | 23 +++++++++++++++++++ .../pages/content/c_blocks_constructor.html | 8 ++++++- templates/pages/p_section.html | 6 ++++- 5 files changed, 51 insertions(+), 5 deletions(-) create mode 100644 templates/blocks/b_service_2_col.html diff --git a/static/aerbimCSS.css b/static/aerbimCSS.css index 418fbe0..478ba2b 100644 --- a/static/aerbimCSS.css +++ b/static/aerbimCSS.css @@ -290,6 +290,11 @@ body,html{ margin: 80px 25px; display: flex; width: calc(100% - 50px); + flex-wrap: unset; +} + +.block_service.two_cols{ + flex-wrap: wrap; } .service_block_container{ @@ -297,6 +302,12 @@ body,html{ margin-right: 70px; } +.service_block_container.two_cols{ + width: calc(50% - 70px); + margin-right: 70px; + margin-bottom: 25px; +} + .childs_service_container{ border-left: 1px solid #9CDDF7; padding-left: 20px; @@ -323,6 +334,11 @@ body,html{ float: right; padding-left: 20px; font-weight: 700; + color: #000000; +} + +.right_part_service.two_cols{ + font-weight: 500; } .right_part_service.child{ diff --git a/static/aerbimJS.js b/static/aerbimJS.js index 47c5984..c8742de 100644 --- a/static/aerbimJS.js +++ b/static/aerbimJS.js @@ -82,10 +82,7 @@ function replaceHrefOnOnclick () { str_f_replace = str_f_replace.replace(`${window.location.origin}`,'') str_f_replace = `href="${str_f_replace}"` str = str.replace(str_f_replace,'') - str = str.replace('"target="_blank""','') - cur_el.outerHTML = str - } i++ }) diff --git a/templates/blocks/b_service_2_col.html b/templates/blocks/b_service_2_col.html new file mode 100644 index 0000000..04759a5 --- /dev/null +++ b/templates/blocks/b_service_2_col.html @@ -0,0 +1,23 @@ +{% load static %} +{% load i18n %} + +
+
+ {% for service in services %} +
+
+ {% if service.picture %} +
+ +
+ {% endif %} +
+ {{ service.name }} +
+
+ +
+
+ {% endfor %} +
+
\ No newline at end of file diff --git a/templates/pages/content/c_blocks_constructor.html b/templates/pages/content/c_blocks_constructor.html index bb31bc7..747d651 100644 --- a/templates/pages/content/c_blocks_constructor.html +++ b/templates/pages/content/c_blocks_constructor.html @@ -1,5 +1,11 @@ {% include 'blocks/dynamic/b_sections_buttons.html' %} -{% include 'blocks/b_service.html' %} +{% if services_view_scheme == '3_cols_w_group' %} + {% include 'blocks/b_service.html' %} + {% elif services_view_scheme == '2_cols_wo_group' %} + {% include 'blocks/b_service_2_col.html' %} +{% endif %} + + {#{% include 'blocks/b_how_with_us_working.html' %}#} {% for block in cur_section.blocks.all %} {% if block.block_type == 'photo150_n_title' %} diff --git a/templates/pages/p_section.html b/templates/pages/p_section.html index 24019ac..d9ba612 100644 --- a/templates/pages/p_section.html +++ b/templates/pages/p_section.html @@ -1,7 +1,11 @@ {% extends 'tb_base.html' %} {% block CONTENT %} {% include 'blocks/dynamic/b_sections_buttons.html' %} - {% include 'blocks/b_service.html' %} + {% if services_view_scheme == '3_cols_w_group' %} + {% include 'blocks/b_service.html' %} + {% elif services_view_scheme == '2_cols_wo_group' %} + {% include 'blocks/b_service_2_col.html' %} + {% endif %} {% for block in page.blocks.all %} {% if block.block_type == 'photo150_n_title' %} {% include 'blocks/b_photo150_n_title.html' %}