This commit is contained in:
SBD
2023-11-26 20:19:59 +03:00
parent eb55fe1e41
commit 9e01eef08d
4 changed files with 53 additions and 1 deletions

View File

@@ -0,0 +1,32 @@
{% load static %}
{% load i18n %}
<div class="services_block">
{% 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>
{% 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>