title: Silex - Symfony Froms - How to wrap each radio button and its label in to separate div for each radio in choice list?
body: <p>I am using Silex micro faramework with Symfony forms. In twig templet I generate this field using : </p>
  
  <pre><code>...
  {{ form_widget(form.transport_selection) }}
  ... 
  </code></pre>
  
  <p>How can I overwrite this symfony twig form templet to generate wrap for each set (input field and label) in Silex.</p>
  
  <p>This is my twig registration:</p>
  
  <pre><code>use Silex\Provider\FormServiceProvider;
  use Symfony\Component\Translation\Loader\YamlFileLoader;
  use Symfony\Component\Validator\Constraints as Assert;
  
  $app-&gt;register(new Silex\Provider\TwigServiceProvider(), array(
      'twig.path' =&gt; [
          __DIR__.'/App/View',
      ]
  )); 
  </code></pre>
  
  <p>How to wrap radio button and label with div for each radio choice ? </p>
  
  <p><strong>output:</strong> </p>
  
  <pre><code>&lt;div id="form_transport_selection"&gt;
    &lt;input type="radio" id="form_transport_selection_0" name="form[transport_selection]" required="required" value="country" checked="checked"&gt;
    &lt;label for="form_transport_selection_0" class="required"&gt;country&lt;/label&gt;
    &lt;input type="radio" id="form_transport_selection_1" name="form[transport_selection]" required="required" value="abroad"&gt;
    &lt;label for="form_transport_selection_1" class="required"&gt;abroad&lt;/label&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Expected output:</strong> </p>
  
  <pre><code>&lt;div id="form_transport_selection"&gt;
    &lt;div class="radio1"&gt;
      &lt;input type="radio" id="form_transport_selection_0" name="form[transport_selection]" required="required" value="country" checked="checked"&gt;
      &lt;label for="form_transport_selection_0" class="required"&gt;country&lt;/label&gt;
    &lt;/div&gt;
    &lt;div class="radio2"&gt;
      &lt;input type="radio" id="form_transport_selection_1" name="form[transport_selection]" required="required" value="abroad"&gt;
      &lt;label for="form_transport_selection_1" class="required"&gt;abroad&lt;/label&gt;
    &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Thanks</p>