{% comment %} Template for a modular modal window composed of several sections. Payload: codex_django.cabinet.types.components.ModalContentData {% endcomment %}
{{ obj.title }}
{% for section in obj.sections %} {% if section.type == 'profile' %}
{% if section.avatar %}
{{ section.avatar }}
{% endif %}
{{ section.name }}
{{ section.subtitle }}
{% elif section.type == 'summary' %}
{% for item in section.items %}
{{ item.label }}
{{ item.value }}
{% endfor %}
{% elif section.type == 'form' %}
{% for field in section.fields %}
{% if field.field_type == 'textarea' %} {% elif field.field_type == 'select' %} {% else %} {% endif %}
{% endfor %}
{% elif section.type == 'slot_picker' %}
{% if section.data.prev_url %} {% endif %}
{{ section.data.selected_date_label }}
{% if section.data.next_url %} {% endif %} {% if section.data.today_url %} {% endif %}
Свободные слоты
{% for slot in section.data.slots %} {% empty %}
На выбранную дату свободных слотов нет.
{% endfor %}
{% elif section.type == 'quick_create' %}
Мастер
{{ section.data.resource_label }}
Дата
{{ section.data.date_label }}
Время
{{ section.data.time_label }}
{% if section.data.allow_new_client %} {% endif %}
{% if section.data.allow_new_client %}
{% endif %}
{% elif section.type == 'chain_preview' %}
{{ section.data.title }}
{% for item in section.data.items %}
{{ item.title }}
{% if item.subtitle %}
{{ item.subtitle }}
{% endif %} {% if item.meta %}
{{ item.meta }}
{% endif %}
{% empty %}
Цепочка пока не собрана.
{% endfor %}
{% elif section.type == 'actions' %}
{% for action in section.actions %} {% endfor %}
{% endif %} {% endfor %}