0.0.17 bg_color for block

This commit is contained in:
SDE
2023-11-28 13:27:27 +03:00
parent 852368f4bd
commit 5caf539c2f
4 changed files with 28 additions and 23 deletions

View File

@@ -21,6 +21,7 @@ block_type_choices = (
('photo_n_text', _('Фото + текст')), ('photo_n_text', _('Фото + текст')),
('photo150_n_title', _('Фото 150x150 + заголовок')), ('photo150_n_title', _('Фото 150x150 + заголовок')),
('how_work', _('Как с нами работать')), ('how_work', _('Как с нами работать')),
('feedback_form', _('Форма обратной связи')),
# ('slider', _('Галерея слайдов')), # ('slider', _('Галерея слайдов')),
) )

View File

@@ -51,8 +51,6 @@
</div> </div>
{% endif %} {% endif %}
{% include 'forms/f_consultation.html' %}
</div> </div>
</div> </div>

View File

@@ -1,6 +1,7 @@
{% load static %} {% load static %}
{% load i18n %} {% load i18n %}
<div style="width: 100%;{% if block.bg_color %} background: {{ block.bg_color }}{% endif %}">
<div class="cut-width">
<div class="form_consultation_container" > <div class="form_consultation_container" >
<div class="top_border_gradient"></div> <div class="top_border_gradient"></div>
<form class="form_consultation"> <form class="form_consultation">
@@ -25,3 +26,5 @@
</div> </div>
</form> </form>
</div> </div>
</div>
</div>

View File

@@ -6,7 +6,10 @@
{% include 'blocks/b_photo150_n_title.html' %} {% include 'blocks/b_photo150_n_title.html' %}
{% elif block.block_type == 'how_work' %} {% elif block.block_type == 'how_work' %}
{% include 'blocks/b_how_with_us_working.html' %} {% include 'blocks/b_how_with_us_working.html' %}
{% elif block.block_type == 'feedback_form' %}
{% include 'forms/f_consultation.html' %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% if cur_section.plugin_presentation.all %} {% if cur_section.plugin_presentation.all %}
{% include 'blocks/b_3d_s_d.html' with block=cur_section.plugin_presentation.all.0 %} {% include 'blocks/b_3d_s_d.html' with block=cur_section.plugin_presentation.all.0 %}