{% extends "Includes/layout.html.twig" %} {% block body %}
{% if is_granted('ROLE_BACKEND') %} {{ 'Advertiser edit'|trans }} {% else %} {{ 'Complete my profile'|trans }} {% endif %}
{% for message in app.flashes('success') %} {% endfor %} {% for message in app.flashes('error') %} {% endfor %} {% if errors|length > 0 %}
{{ errors[0].message }}
{% endif %}
{% if not is_granted('ROLE_BACKEND') and advertiserPending.id is not null and advertiserPending.status == 'pending' %}
{{ 'Your profile is waiting for validation'|trans }}
{% endif %} {% if advertiserPending.id is not null and advertiserPending.status == 'reported' %}
{{ 'Your profile has some errors'|trans }} :
    {% for err in advertiserPending.errorInfo %}
  • {{ err.field|trans }} : {% if err.comment != "" %} {{ err.comment }} {% else %} {{ err.reason|trans }} {% endif %}
  • {% endfor %}
{% endif %}
{% if is_granted('ROLE_BACKEND') %}
{% endif %}
{% if advertiserPending.logo is not null %} {% elseif advertiser.logo is not null %} {% endif %} {% if advertiserPending.id is null and advertiser.logo is null %} {{ 'You don\'t have a logo ?'|trans }}
{{ 'Choose the default one !'|trans }}
{% endif %} ({{ 'max size'|trans }} : 600px, {{ 'only'|trans }} jpg/png )
{% if is_granted('ROLE_BACKEND') %}
{% if is_granted('ROLE_IT') %}
{{ 'days'|trans }}
{% endif %}
{% endif %} {% if is_granted('ROLE_BACKEND') %}
{{ 'Page'|trans }} <% u + 1 %>
{% endif %} {% if is_granted('ROLE_IT') %}
{% for externalAggregator in externalAggregators %}
{% endfor %}
{% endif %} {% if is_granted('ROLE_SAAS') or is_granted('ROLE_DAF') %}
{{ "On candidate apply"|trans }}
{{ "On candidate reject"|trans }}
{% if advertiserPending.id is null or advertiserPending.status == 'reported' or is_granted('ROLE_BACKEND') %} {% endif %} {% endif %}
{% if is_granted('ROLE_BACKEND') %} {% endif %}
{% if is_granted('ROLE_BACKEND') %} {% endif %}
{% endblock %} {% block specificJS %} {{ encore_entry_script_tags('advertiser-edit') }} {% endblock %}