title: Wrap Symfony form fields in a div in Twig
body: <p>Given the simple form build:</p>
  
  <pre><code>$form = add('a')
        -&gt;add('b')
        -&gt;add('c')
        -&gt;add('d')
        -&gt;add('e')
        -&gt;add('f');
  </code></pre>
  
  <p>I'd like to wrap a div tag around  ABC and DEF, like so:</p>
  
  <pre><code>&lt;div class="section1"&gt;
      &lt;input type="text" name="a" /&gt;
      &lt;input type="text" name="b" /&gt;
      &lt;input type="text" name="c" /&gt;
  &lt;/div&gt;
  &lt;div class="section2"&gt;
      &lt;input type="text" name="d" /&gt;
      &lt;input type="text" name="e" /&gt;
      &lt;input type="text" name="f" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Problem is, I am just able to use the Symfony Form Component for this project. Is there a way with twig to render the form fields in groups like above? I will need to specify logic that says something simliar to "start section 1 with 'a' and section 2 with 'd'", so this way if any fields change inbetween (say we remove the field with the name 'b') the form will still work.</p>
  
  <p>My twig file looks like this, which is obviously not correct:</p>
  
  <pre><code>&lt;form action="#" method="POST" {{ form_enctype(form) }}&gt;
      {% for child in form.children %}
          &lt;div class="form_row"&gt; 
              {{ form_label(form) }}
              {{ form_errors(form) }}
              {{ form_widget(form) }}
          &lt;/div&gt;
      {% endfor %}
  &lt;/form&gt; 
  </code></pre>