{% extends 'Front/layout.html.twig' %}

{% block init_javascripts %}
    <!-- Google Maps JavaScript API v3 key -->
    <script src="https://maps.googleapis.com/maps/api/js?key={{ google_maps_id }}"></script>
    <script>
        var geocoder = new google.maps.Geocoder();
        {% if constant('AppBundle\\Enum\\UserType::TEACHER') == app.user.type %}
        var fieldPrefix = '#profile_prof_form_';
        {% else %}
        var fieldPrefix = '#profile_inge_form_';
        {% endif %}
    </script>
{% endblock %}

{% block body %}
    {% include "FOSUserBundle:Profile:edit_content.html.twig" %}
{% endblock %}

{% block before_body %} 
    {% set pageHeaderActiveMenu = 'profile' %}
    {% include "Front/_part/page-header-profile.html.twig" %}
    {#{ render(controller('AppBundle:Render:module', { position:'before_body' })) }#}
{% endblock %}

{% block after_body %} 
    {#{ render(controller('AppBundle:Render:module', { position:'after_body' })) }#}
{% endblock %}