This commit is contained in:
SBD
2023-11-27 12:44:47 +03:00
parent 883296ba96
commit b0a56e40e6
2 changed files with 88 additions and 22 deletions

View File

@@ -3,31 +3,34 @@
<div class="cut-width">
<div class="block_service">
{% for service in services %}
<div class="service_container">
{% if sub_serv.picture %}
<div class="left_part_service">
<img class="service_img" src="{{ MEDIA_URL }}{{ service.picture }}">
<div class="service_block_container">
<div class="service_container">
{% if sub_serv.picture %}
<div class="left_part_service">
<img class="service_img" src="{{ MEDIA_URL }}{{ service.picture }}">
</div>
{% endif %}
<div class="right_part_service medium_small_bold_txt {% if not sub_serv.picture %}w_100{% endif %}">
{{ service.name }}
</div>
{% if service.rel_children_for_service.all %}
<div class="childs_service_container">
{% for sub_serv in service.rel_children_for_service.all %}
<div class="services_block_child">
{% if sub_serv.picture %}
<div class="left_part_service">
<img class="service_img" src="{{ MEDIA_URL }}{{ sub_serv.picture }}">
</div>
{% endif %}
<div class="right_part_service standart_semi_bold_txt {% if not sub_serv.picture %}w_100{% endif %}">
{{ sub_serv.name }}
</div>
<div class="clear_both"></div>
</div>
{% endfor %}
</div>
{% endif %}
<div class="right_part_service {% if sub_serv.picture %}w_100{% endif %}">
{{ service.name }}
</div>
{% if service.rel_children_for_service.all %}
{% for sub_serv in service.rel_children_for_service.all %}
<div class="services_block">
<div class="service_container">
{% if sub_serv.picture %}
<div class="left_part_service">
<img class="service_img" src="{{ MEDIA_URL }}{{ sub_serv.picture }}">
</div>
{% endif %}
<div class="right_part_service {% if not sub_serv.picture %}w_100{% endif %}">
{{ sub_serv.name }}
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>