0.1.1 fix css, add buttons
This commit is contained in:
@@ -436,7 +436,7 @@ body.n_scroll{
|
|||||||
|
|
||||||
.txt_descript_process.standart_txt{
|
.txt_descript_process.standart_txt{
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
padding-top: 30px;
|
padding-top: 10px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
color: #000000;
|
color: #000000;
|
||||||
|
|||||||
@@ -8,19 +8,20 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if block.rel_widgets_for_block.all %}
|
{% if block.rel_widgets_for_block.all %}
|
||||||
<div class="descript_process_block">
|
<div class="descript_process_block">
|
||||||
{% for b_widget in block.rel_widgets_for_block.all %}
|
{% for widget in block.rel_widgets_for_block.all %}
|
||||||
|
|
||||||
<div class="descript_process_container">
|
<div class="descript_process_container">
|
||||||
{% if b_widget.picture %}
|
{% if widget.picture %}
|
||||||
<div class="photo_container_descript_process">
|
<div class="photo_container_descript_process">
|
||||||
<img class="img_descript_process" src="{{ MEDIA_URL }}{{ b_widget.picture }}">
|
<img class="img_descript_process" src="{{ MEDIA_URL }}{{ widget.picture }}">
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if b_widget.name %}
|
{% if widget.name %}
|
||||||
<div class="txt_descript_process standart_txt">
|
<div class="txt_descript_process standart_txt">
|
||||||
{{ b_widget.name }}
|
{{ widget.name }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% include "blocks/block_elements/be_button.html" %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{# <div class="descript_process_container">#}
|
{# <div class="descript_process_container">#}
|
||||||
|
|||||||
@@ -1,14 +1,28 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
<div {% include "block_settings/blocks_settings.html" %}>
|
<div {% include "block_settings/blocks_settings.html" %}>
|
||||||
<div class="cut-width">
|
<div class="cut-width">
|
||||||
<div class="content_block_present_technology">
|
{% if block.url %}
|
||||||
<div class="left_part_block_present_technology">
|
<a href="{{ block.url }}">
|
||||||
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
<div class="content_block_present_technology">
|
||||||
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
<div class="left_part_block_present_technology">
|
||||||
|
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
||||||
|
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="right_part_block_present_technology">
|
||||||
|
<img class="img_block_present_technology" src="{{ block.picture.url }}" alt="{{ block.name }}">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<div class="content_block_present_technology">
|
||||||
|
<div class="left_part_block_present_technology">
|
||||||
|
<div class="txt_block_present_technology semi_large_light">{{ block.description }}</div>
|
||||||
|
<div class="txt_block_present_technology large_txt">{{ block.name }}</div>
|
||||||
|
</div>
|
||||||
|
<div class="right_part_block_present_technology">
|
||||||
|
<img class="img_block_present_technology" src="{{ block.picture.url }}" alt="{{ block.name }}">
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="right_part_block_present_technology">
|
{% endif %}
|
||||||
<img class="img_block_present_technology" src="{{ block.picture.url }}">
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
5
templates/blocks/block_elements/be_button.html
Normal file
5
templates/blocks/block_elements/be_button.html
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
{% if widget.but_title %}
|
||||||
|
<a href="{{ widget.url }}" style="border: {{ widget.but_color }} solid 2px; color: {{ widget.but_color }};">
|
||||||
|
{{ widget.but_title }}
|
||||||
|
</a>
|
||||||
|
{% endif %}
|
||||||
@@ -16,5 +16,6 @@
|
|||||||
{{ widget.description|safe|linebreaksbr }}
|
{{ widget.description|safe|linebreaksbr }}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% include "blocks/block_elements/be_button.html" %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
Reference in New Issue
Block a user