{% load static %}
{% load i18n %}

<div class="card_contacts">
    <div class="container_img_card_contacts">
        <img class="img_card_contacts" src="{{ office.picture.url }}">
    </div>
    <div class="description_contact">
        <div class="name_contact">
            {{ office.city }}
        </div>
        <div class="description_office_contact">
            {{ office.address }}
        </div>
        <div class="label_work_time">
            {% translate "Часы работы" %}:
        </div>
        <div class="work_time_office">
            <div class="work_time_from_to{% if office.work_time %} margin{% endif %}">{{ office.work_time_from }} - {{ office.work_time_to }}</div>
            {% if office.workTime %}<div class="letters_work_time">{{ office.workTime }}</div>{% endif %}
        </div>
        {% for contact in office.contacts %}
            <div class="office_data">   
                {% if contact.contact_label %}<div class="label_contact">{{ contact.contact_label }}: </div>{% endif %}
                <div class="text_contact">{{ contact.get_prefix_w_data }}</div> 
            </div>
{#                        <div class="office_data">{{ office.phone }}</div>#}
        {% endfor %}
    </div>
</div>