title: SONATA USER BUNDLE/FOS USER BUNDLE
body: <p><br>
  It's my first time with this Bundle.<br>
  I have a little problem to display correctly the side to register someone. <br>In fact, the layout is duplicate. I don't know why. <br>I spent lot of time but I have not the answer at the moment. <br> I join a picture to understand (the left side is correct but the right side is not correct. 
  <img src="https://i.stack.imgur.com/cwr5B.jpg" alt="enter image description here"></p>
  
  <p>I follow this instructions : <a href="https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_templates.md" rel="nofollow noreferrer">https://github.com/FriendsOfSymfony/FOSUserBundle/blob/master/Resources/doc/overriding_templates.md</a><br>
  My code : <br>
  views/layout.html.twig</p>
  
  <pre><code>{% extends "EmooviofrontBundle::layout.html.twig" %}
  
  {% block content %}
      &lt;!-- Page Content --&gt;
      &lt;div class="col-lg-12"&gt;
          &lt;!-- Page Heading/Breadcrumbs --&gt;
          &lt;div class="row"&gt;
              &lt;div class="col-md-12"&gt;
                  &lt;h1 class="page-header"&gt;Connexion
                  &lt;/h1&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;!-- /.row --&gt;
          &lt;div&gt;
              {% if is_granted("IS_AUTHENTICATED_REMEMBERED") %}
                  {{ 'layout.logged_in_as'|trans({'%username%': app.user.username}, 'FOSUserBundle') }} |
                  &lt;a href="{{ path('fos_user_security_logout') }}"&gt;
                      {{ 'layout.logout'|trans({}, 'FOSUserBundle') }}
                  &lt;/a&gt;
              {% else %}
                  &lt;a href="{{ path('fos_user_security_login') }}"&gt;{{ 'layout.login'|trans({}, 'FOSUserBundle') }}&lt;/a&gt;
              {% endif %}
          &lt;/div&gt;
  
              {% for type, messages in app.session.flashBag.all %}
                  {% for message in messages %}
                      &lt;div class="{{ type }}"&gt;
                          {{ message|trans({}, 'FOSUserBundle') }}
                      &lt;/div&gt;
                  {% endfor %}
              {% endfor %}
  
          &lt;div&gt;
              {% block fos_user_content %}
              {% endblock fos_user_content %}
          &lt;/div&gt;
      &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>views/Security/login.html.twig:</p>
  
  <pre><code>{% extends "SonataUserBundle:Security:base_login.html.twig" %}
  </code></pre>
  
  <p>views/Security/base_login.html.twig:</p>
  
  <pre><code>{% extends "SonataUserBundle::layout.html.twig" %}
  
  {% block fos_user_content %}
      &lt;div class="row"&gt;
          &lt;div class="col-md-6"&gt;
              &lt;h3 class="compte"&gt;Déjà membre&lt;/h3&gt;
              {% if error %}
                  &lt;div class="alert alert-danger alert-error"&gt;{{ error|trans({}, 'FOSUserBundle') }}&lt;/div&gt;
              {% endif %}
              &lt;form action="{{ path("fos_user_security_check") }}" method="post" role="form" class="form-horizontal" id="loginform"&gt;
                  &lt;input type="hidden" name="_csrf_token" value="{{ csrf_token }}"/&gt;
                  &lt;div style="margin-bottom: 25px" class="input-group"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="glyphicon glyphicon-user"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;input type="text" class="form-control" id="username" name="_username" value="{{ last_username }}" required="required" placeholder="E-mail"&gt;
                  &lt;/div&gt;
                  &lt;div style="margin-bottom: 25px" class="input-group"&gt;
                      &lt;span class="input-group-addon"&gt;&lt;i class="glyphicon glyphicon-lock"&gt;&lt;/i&gt;&lt;/span&gt;
                      &lt;input type="password" class="form-control" id="password" name="_password" required="required" placeholder="Mot de passe"/&gt;
                  &lt;/div&gt;
                  &lt;div style="float:right; font-size: 80%; position: relative; top:5px; right:5px"&gt;
                      &lt;a href="{{ path('fos_user_resetting_request') }}"&gt;{{ 'forgotten_password'|trans({}, 'SonataUserBundle') }}&lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="input-group"&gt;
                      &lt;div class="checkbox"&gt;
                          &lt;label for="remember_me"&gt;
                              &lt;input type="checkbox" id="remember_me" name="_remember_me" value="on"/&gt;
                                  {{ 'security.login.remember_me'|trans({}, 'FOSUserBundle') }}
                          &lt;/label&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
                  &lt;div style="margin-top:10px" class="form-group"&gt;
                      &lt;!-- Button --&gt;
                      &lt;div class="col-sm-12 controls"&gt;
                          &lt;div class="col-sm-2"&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-2"&gt;
                              &lt;input type="submit" id="_submit" name="_submit" class="bg-black"
                                 value="{{ 'security.login.submit'|trans({}, 'FOSUserBundle') }}"/&gt;
                          &lt;/div&gt;
                          &lt;div class="col-sm-8"&gt;
                              &lt;a class="bg-black " href="#"&gt;Connexion avec Facebook &lt;img src="{{ asset('bundles/emoovio/uploads/social_network/facebook.png') }}" /&gt;&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
                  &lt;/div&gt;
              &lt;/form&gt;
          &lt;/div&gt;
          &lt;div class="col-md-6"&gt;
              {% render controller("FOSUserBundle:Registration:register") %}
          &lt;/div&gt;
      &lt;/div&gt;
  {% endblock fos_user_content %}
  </code></pre>
  
  <p>views/Registration/register_content.html.twig: </p>
  
  <pre><code>{% block register %}
  &lt;div class="col-md-6"&gt;
      &lt;div class="panel-heading"&gt;
          &lt;h2 class="panel-title"&gt;{{ 'title_user_registration'|trans({}, 'SonataUserBundle') }}&lt;/h2&gt;
      &lt;/div&gt;
      &lt;div class="panel-body"&gt;
          &lt;form action="{{ path('fos_user_registration_register') }}" {{ form_enctype(form) }} method="POST" class="fos_user_registration_register form-horizontal"&gt;
              {{ form_widget(form) }}
              &lt;div class="form-actions"&gt;
                  &lt;input type="submit" value="{{ 'registration.submit'|trans({}, 'FOSUserBundle') }}" class="btn btn-success pull-right" /&gt;
              &lt;/div&gt;
          &lt;/form&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  {% endblock %}
  </code></pre>
  
  <p>Has someone had ever this problem... Thank you.</p>