{% trans_default_domain 'admin' %} {% block _col_size_size_widget %}
{% for choice in choices %} {% set id = uniqId() %} {% endfor %}
{% endblock %} {% block _zone_grid_grid_widget %}
{% for key, choice in choices %} {% if choice.data.cols|length > 0 %} {% endif %} {% endfor %}
{% endblock %} {% block _background_color_zone_backgroundColor_widget %}
{% for choice in choices %} {% set filedId = loop.index ~ uniqId() %} {% set color = 'background'|color(website(), choice.data) %} {% set hexa = color ? color.color : choice.data %} {% set hexa = hexa ? hexa : 'transparent' %} {% endfor %}
{% endblock %} {% block _background_color_col_backgroundColor_widget %}
{% for choice in choices %} {% set filedId = loop.index ~ uniqId() %} {% set color = 'background'|color(website(), choice.data) %} {% set hexa = color ? color.color : choice.data %} {% set hexa = hexa ? hexa : 'transparent' %} {% endfor %}
{% endblock %} {% block _layout_configuration_modules_widget %} {% set disabled = ['edit', "medias", "seo", "translation", "user", "user-switcher", "gdpr", "zone-edit", "col-edit", "css", "analytic", "secure-page"] %} {% endblock %} {% block _layout_configuration_blockTypes_widget %} {% endblock %} {% block _website_configuration_blockTypes_widget %}
{% for choiceId, choice in choices %}
{% endfor %}
{% endblock %} {% block _website_configuration_modules_widget %}
{% for choiceId, choice in choices %}
{% endfor %}
{% endblock %} {% block _information_emails_widget %} {% import _self as macro %} {% macro field_prototype(property, prototypeGroup) %} {% set entity = property.vars.data is defined ? property.vars.data : null %} {% set isNew = entity.id is defined and entity.id ? false : true %} {% set entityId = isNew ? uniqId() : entity.id %} {% set interfaceName = property.vars.errors.form.config.dataClass|interfaceName %} {% if prototypeGroup %}
{% endif %}
{% set slug = entity.slug is defined and entity.slug %} {% set haveTitle = slug == ('support' or 'no-reply') %} {% if haveTitle %} {% set title = entity.slug == 'support' ? 'Expéditeur par défaut'|trans : 'Répondre à par défaut'|trans %}
{{ title }}
{% endif %}
{{ form_row(property.email) }} {{ form_row(property.locale) }} {% if haveTitle %}
{% endif %} {{ form_row(property.zones) }} {% if haveTitle %}
{% endif %} {% if entity.deletable is not defined or entity.deletable is defined and entity.deletable %} {% include 'admin/core/form/modal-delete-collection.html.twig' with { 'isNew': property.vars.data.id is defined and property.vars.data.id ? false : true, 'entityId': isNew ? uniqId() : property.vars.data.id, 'interfaceName': interfaceName } %} {% else %} {% endif %}
{% if prototypeGroup %}
{% endif %} {% endmacro %} {% set prototypeOptions = form.vars.prototype.vars %} {% set prototypeGroup = prototypeOptions.attr.group %}
{% for property in form.children %} {{ macro.field_prototype(property, prototypeGroup) }} {% endfor %}
{% endblock %} {#{% block _page_parent_widget %}#} {# {% set options = [] %}#} {# {% for choice in choices %}#} {# {% set options = options|merge([choice.data]) %}#} {# {% endfor %}#} {# {% set tree = options|entityTree %}#} {# {% set entities = tree.main is defined ? tree.main : [] %}#} {# {% macro option(entity, tree, pupPosition = 1) %}#} {# {% set children = tree[entity.id] is defined ? tree[entity.id] : [] %}#} {# {% if children and entity.level == 2 %}#} {# {% set pupPosition = pupPosition == 1 ? pupPosition : pupPosition + 1 %}#} {# {{ dump(pupPosition) }}#} {# {% set pup = pupPosition %}#} {# {% endif %}#} {# {% set pup = pup ~ '1' %}#} {# {% set isMain = not index %}#} {# {% set index = isMain ? index + 1 : index %}#} {# {% set pup = not pup ? index : pup ~ '1' %}#} {# #} {# {% import _self as macro %}#} {# {% for child in children %}#} {# {{ macro.option(child, tree, pupPosition) }}#} {# {% endfor %}#} {# {% endmacro %}#} {# {% macro option(entities, tree, pupPosition = 0, pup = null) %}#} {# {% import _self as macro %}#} {# {% for entity in entities %}#} {# {% set children = tree[entity.id] is defined ? tree[entity.id] : [] %}#} {# {% if children and entity.level == 1 %}#} {# {% set pupPosition = pupPosition + 1 %}#} {# {% endif %}#} {# {% if children and entity.level == 2 %}#} {# {% set pup = pupPosition %}#} {# {% elseif children and entity.level > 2 %}#} {# {% set pup = pup ~ 1 %}#} {# {% endif %}#} {# {{ dump(pupPosition) }}#} {# #} {# {% if children %}#} {# {{ macro.option(children, tree, pupPosition, pup) }}#} {# {% endif %}#} {# {% endfor %}#} {# {% endmacro %}#} {# {% import _self as macro %}#} {# #} {# #} {#{% endblock %}#}