diff --git a/templates/blocks/b_photo_n_text.html b/templates/blocks/b_photo_n_text.html new file mode 100644 index 0000000..a3e3c1f --- /dev/null +++ b/templates/blocks/b_photo_n_text.html @@ -0,0 +1,21 @@ +
+ {% for widget in block.get_widgets %} +
+
+ {% if widget.name %} +
{{ widget.name }}
+ {% endif %} + {% if widget.description %} +
{{ widget.description|safe|linebreaksbr }}
+ {% endif %} +
+
+ {% if widget.video_url %} +
{{ widget.video_url|safe }}
+ {% elif widget.picture %} + {{ widget.name }} + {% endif %} +
+
+ {% 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 cef6481..7385dc7 100644 --- a/templates/pages/content/c_blocks_constructor.html +++ b/templates/pages/content/c_blocks_constructor.html @@ -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 %}