{% extends is_mobile ? "::base_m.html.twig" : "::base.html.twig" %}

{% block title %}{{ title }}{% endblock %}
{% block title_display %}{{ title }}{% endblock %}
{% block breadcrumbs %}{% if breadcrumbs %}{{ breadcrumbs|raw }}{% endif %}{% endblock %}

{% block body %}

{#
{% if user_info.email %}
<div>Текущий e-mail:</div>
<div>{{ user_info.email }}</div>
{% endif %}
#}

{% form_theme form 'NeagMainBundle:Form:fields.html.twig' %}

<form class="form" action="{{ action }}" method="post" {{ form_enctype(form) }}>   

{% if user_info.email %}
<div class="form-row">
<label>Текущий e-mail:</label>{{ user_info.email }}
</div>
{% endif %}
    
    {{ form_rest(form) }}

    {% if change %}
    <input type="submit" name="submit" value="Сменить e-mail" class="form-submit" />
    {% else %}
    <input type="submit" name="submit" value="Привязать e-mail" class="form-submit" />
    {% endif %}

</form>

{% endblock %}

{% block javascripts %}

{% endblock %}
