title: Symfony2 form: How to render the same element twice in the same view
body: <p>I have a controller where I am creating a form witg two dropdown list inside.</p>
  
  <p>When I am rendering my view, I would like to have the same form elements on the top and the bottom of the page. The problem is that the form elemetns (dropdownlists) are displayed only on the top of the page, even if I am asking twig to put them also on the bottom.</p>
  
  <p>Here is what I would like to have:</p>
  
  <p><img src="https://i.stack.imgur.com/37Dsv.png" alt="enter image description here"></p>
  
  <p>The 1 and 2 are the dropdownlists. And I would like to duplicate this on the top and on the bottom of the page.</p>
  
  <p>Any Idea on how can this be done?</p>
  
  <p>The top content and the bottom content, where the two dropdownlists are inside are in a single sseparate twig file (searchPanel.html.twig) and this file is included in the page </p>
  
  <pre><code>{% include "MyBundle:Search:searchPanel.html.twig" %}
  </code></pre>
  
  <p>Here is the searchPanel.html.twig</p>
  
  <pre><code>&lt;div class="searchPanel"&gt;
  
  &lt;form action="{{ path }}" method="POST" {{ form_enctype(form) }}&gt;
      Papers per page
      {{ form_widget(form.papers_per_page, { 'class': 'ppp'}) }}
  
      / Sort by 
      {{ form_widget(form.sort_by, { 'class': 'sort'}) }}
      {{ form_rest(form) }}
  
      / Papers ({{ papers_number }} results)
  
   &lt;input type="submit" class="updateSearchResults" value="Update"&gt;&lt;/input&gt;
  &lt;/form&gt;
  </code></pre>