0.0.33 block photo_n_text
This commit is contained in:
21
templates/blocks/b_photo_n_text.html
Normal file
21
templates/blocks/b_photo_n_text.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<div>
|
||||
{% for widget in block.get_widgets %}
|
||||
<div>
|
||||
<div>
|
||||
{% if widget.name %}
|
||||
<div>{{ widget.name }}</div>
|
||||
{% endif %}
|
||||
{% if widget.description %}
|
||||
<div>{{ widget.description|safe|linebreaksbr }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div>
|
||||
{% if widget.video_url %}
|
||||
<div>{{ widget.video_url|safe }}</div>
|
||||
{% elif widget.picture %}
|
||||
<img src="{{ MEDIA_URL }}{{ widget.picture }}" alt="{{ widget.name }}" />
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
@@ -22,6 +22,8 @@
|
||||
{% include 'blocks/b_present_technology.html' %}
|
||||
{% elif block.block_type == 'main_block_w_subblocks' %}
|
||||
{% include 'blocks/b_functional_features.html' %}
|
||||
{% elif block.block_type == 'photo_n_text' %}
|
||||
{% include 'blocks/b_photo_n_text.html' %}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user