0.4.33 add presentation file

This commit is contained in:
SDE
2023-12-23 16:47:31 +05:00
parent 3ff4a480e2
commit af9cd4407e
5 changed files with 11 additions and 34 deletions

View File

@@ -1,23 +1,12 @@
{% load static %}
<div {% include "block_settings/blocks_settings.html" %}>
<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 class="container_block_presentation_aerBim">
<div class="cut-width">
<div class="container_content_presentation_aerBim">
{% for widget in block.get_widgets %}
{% include "widgets/w_one_present_aerBim.html" %}
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>

View File

@@ -1,12 +0,0 @@
{% load static %}
<div {% include "block_settings/blocks_settings.html" %}>
<div class="container_block_presentation_aerBim">
<div class="cut-width">
<div class="container_content_presentation_aerBim">
{% for widget in block.get_widgets %}
{% include "widgets/w_one_present_aerBim.html" %}
{% endfor %}
</div>
</div>
</div>
</div>

View File

@@ -30,7 +30,7 @@
}
</style>
<div class="{{ name_w }}_{{ widget.id }}_align_btn">
<a class="{{ name_w }}_{{ widget.id }}_widget_btn_a" href="{{ widget.url }}">
<a class="{{ name_w }}_{{ widget.id }}_widget_btn_a" href="{{ widget.url }}" target="_blank">
{{ widget.but_title }}
</a>
</div>