title: Symfony & Easy Admin : How to apply easyadmin template to custom form
body: <p>I created a custom form for and integrated it in easyadmin. the forms is displayed, filled and action is working, but the templating is not good :</p>
  
  <p><a href="https://i.stack.imgur.com/EjR0C.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/EjR0C.jpg" alt="enter image description here"></a></p>
  
  <p>Here is my Twig :</p>
  
  <pre><code>    {% extends "@EasyAdmin/page/content.html.twig" %}
  {% form_theme form with easyadmin_config('design.form_theme') only %}
  
  {% block body_id 'easyadmin-edit-User-1' %}
  {% block body_class 'edit edit-user' %}
  {% block content_title %}
          &lt;h1 class="title"&gt;Edit Account&lt;/h1&gt;
  {% endblock %}
  {% block content_footer_wrapper '' %}
  {% block main %}
      {% block entity_form %}
          {{ form_start(form) }}
          {{ form_widget(form) }}
          &lt;button type="submit" class="btn btn-primary"&gt;Update&lt;/button&gt;
          {{ form_end(form) }}
      {% endblock entity_form %}
  {% endblock %}
  {% block body_javascript %}
      {{ include('@EasyAdmin/default/includes/_select2_widget.html.twig') }}
  {% endblock %}
  </code></pre>
  
  <p>and my controller :</p>
  
  <pre><code>class UserController extends EasyAdminController
  {
      public function editaccountAction(UserInterface $loggedUser, Request $request) {
  
          $repository = $this-&gt;getDoctrine()-&gt;getRepository(User::class);
          $id = $loggedUser-&gt;getId();
          $entity = $repository-&gt;find($id);
  
          $form = $this-&gt;createForm(UserType::class, $entity);
  
          $form-&gt;handleRequest($request);
          if ($form-&gt;isSubmitted() &amp;&amp; $form-&gt;isValid()) {
              /** @var Article $article */
              $entity= $form-&gt;getData();
              $em = $this-&gt;getDoctrine()-&gt;getManager();
              $em-&gt;persist($entity);
              $em-&gt;flush();
              $this-&gt;addFlash('success', 'Account Saved');
              return $this-&gt;redirectToRoute('easyadmin');
          }
          return $this-&gt;render('user/editaccs.html.twig', [
              'form' =&gt; $form-&gt;createView(),
          ]);
      }
  }
  </code></pre>
  
  <p>How can I have the same form presentation as edit?</p>