{% load static %}
{% load i18n %}
{% load admin_interface_tags %}
<div class="block_footer">
    <div class="cut-width">
        <div class="flex_container_footer">
            <div class="footer_els_container">
{#                {% for item in sections %}#}
                        <div class="footer_el">
                            <div class="footer_name_str medium_txt">
{#                                {{ item.name }}#}
                                {% translate "Разделы" %}
                            </div>

                            {% if sections %}
                                <div class="footer_el_childs">
                                    {% for sub_item in sections %}
                                        <a href="{% url 'section_page' sub_item.url %}" class="footer_name_str standart_semi_bold_txt">
                                            {{ sub_item.name }}
                                        </a>
                                    {% endfor %}
                                </div>
                            {% endif %}
                        </div>

{#                {% endfor %}#}
            </div>
            <div class="right_part_footer">
                <div class="logo_container_footer">
                    <img src="{% static "/images/logo_aerbim_footer.svg" %}" class="logo_footer">
                </div>
                <div class="inf_contacts_footer">
                    {% for cont in footer_contacts %}
                            <a href="{% if cont.opt_type == 'footer_email' %}mailto{% elif cont.opt_type == 'footer_phone' %}tel{% endif %}:{{ cont.value }}" class="standart_txt txt_footer">{{ cont.value }}</a>
                    {% endfor %}
                </div>
                <a href="{% url 'contacts' %}" class="btn_contacts_footer">{% translate "Контакты" %}</a>
            </div>
        </div>
    </div>
</div>