This commit is contained in:
SBD
2023-12-10 14:17:35 +03:00
parent 6b61c24895
commit 7bb3a08a6a
3 changed files with 121 additions and 23 deletions

View File

@@ -1,29 +1,17 @@
{% extends 'tb_base.html' %}
{% load static %}
{% load i18n %}
{% block CONTENT %}
<div>
Контакты
<div>
{% for office in offices %}
<div>
{% if office.picture %}
<img src="{{ MEDIA_URL }}{{ office.picture }}" alt="{{ office.city }}" />
{% endif %}
<div>{{ office.city }}</div>
<div>{{ office.address }}</div>
Часы работы:
<div>{{ office.work_time_from }} - {{ office.work_time_to }}</div>
<div>{{ office.work_time }}</div>
<div>
{% for contact in office.contacts %}
<div>
{% if contact.contact_label %}{{ contact.contact_label }}: {% endif %}{{ contact.get_prefix_w_data }}
</div>
{% endfor %}
</div>
<div {% include "block_settings/blocks_settings.html" %}>
<div class="cut-width">
<div class="b_contacts">
<div class="title_of_the_page_contacts">{% translate 'Контакты' %}</div>
<div class="cards_contacts_container">
{% for office in offices %}
{% include "widgets/w_card_office.html" %}
{% endfor %}
</div>
{% endfor %}
</div>
</div>
</div>
{% endblock %}