This commit is contained in:
SBD
2023-11-27 01:07:45 +03:00
parent 9e01eef08d
commit 9ab186ac8b
6 changed files with 269 additions and 26 deletions

View File

@@ -1,32 +1,34 @@
{% 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 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>
{% endif %}
<div class="right_part_service {% if sub_serv.picture %}w_100{% endif %}">
{{ service.name }}
</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 }}">
{% 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>
{% endif %}
<div class="right_part_service {% if not sub_serv.picture %}w_100{% endif %}">
{{ sub_serv.name }}
</div>
</div>
</div>
{% endfor %}
{% endif %}
</div>
{% endfor %}
{% endfor %}
{% endif %}
</div>
{% endfor %}
</div>
</div>