0.1.1 fix css, add buttons
This commit is contained in:
@@ -8,19 +8,20 @@
|
||||
</div>
|
||||
{% if block.rel_widgets_for_block.all %}
|
||||
<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">
|
||||
{% if b_widget.picture %}
|
||||
{% if widget.picture %}
|
||||
<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>
|
||||
{% endif %}
|
||||
{% if b_widget.name %}
|
||||
{% if widget.name %}
|
||||
<div class="txt_descript_process standart_txt">
|
||||
{{ b_widget.name }}
|
||||
{{ widget.name }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% include "blocks/block_elements/be_button.html" %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{# <div class="descript_process_container">#}
|
||||
|
||||
@@ -1,14 +1,28 @@
|
||||
{% load static %}
|
||||
<div {% include "block_settings/blocks_settings.html" %}>
|
||||
<div class="cut-width">
|
||||
<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>
|
||||
{% if block.url %}
|
||||
<a href="{{ block.url }}">
|
||||
<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>
|
||||
</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 class="right_part_block_present_technology">
|
||||
<img class="img_block_present_technology" src="{{ block.picture.url }}">
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</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 }}
|
||||
</div>
|
||||
{% endif %}
|
||||
{% include "blocks/block_elements/be_button.html" %}
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user