title: Symfony2 twig form_widget customize html
body: <p>How can I customize the the following code? I what to use checkboxes coming out of a Database.</p>
  
  <p>This is my Form</p>
  
  <pre><code>$builder-&gt;add('entityname', 'entity', array(
               'class'    =&gt; 'MyBundle:applicant',
               'label'    =&gt; 'label',
               'property' =&gt; 'name',
               'expanded' =&gt; true,
               'required' =&gt; false,
               'multiple' =&gt; true,
               'attr' =&gt; array('class' =&gt; 'css-checkbox')
  </code></pre>
  
  <p>This is my Twig Layout</p>
  
  <pre><code>&lt;div&gt;
          &lt;div&gt;
              {% for entity in form %}
                  {{ form_widget(entityname) }}
              {% endfor %}
          &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>This is what what I see in HTML:</p>
  
  <pre><code>&lt;div id="name" class="css-checkbox"&gt;
  &lt;input type="checkbox" id="name_1" name="name[entityname][]" value="1" /&gt;
  &lt;label for="name_1"&gt;AD DNS&lt;/label&gt;
  &lt;input type="checkbox" id="name_2" name="name[entityname][]" value="2" /&gt;
  &lt;label for="name_2"&gt;Print&lt;/label&gt;
  &lt;input type="checkbox" id="name_3" name="name[entityname][]" value="3" /&gt;
  &lt;label for="name_3"&gt;Citrix&lt;/label&gt;
  &lt;div&gt;
  </code></pre>
  
  <p>What I want to have is:</p>
  
  <pre><code> &lt;div id="name" class="css-checkbox"&gt;
  &lt;div&gt;
          &lt;input type="checkbox" id="name_1" name="name[entityname][]" value="1" /&gt;
      &lt;/div&gt; 
      &lt;div&gt;
          &lt;label for="name_1"&gt;AD DNS&lt;/label&gt;
      &lt;/div&gt; 
      &lt;div&gt;
         &lt;input type="checkbox" id="name_2" name="name[entityname][]" value="2" /&gt;
      &lt;/div&gt; 
      &lt;div&gt;
         &lt;label for="name_2"&gt;Print&lt;/label&gt;
      &lt;/div&gt; 
   &lt;div&gt;
         &lt;input type="checkbox" id="name_3" name="name[entityname][]" value="3" /&gt;
      &lt;/div&gt; 
      &lt;div&gt;
         &lt;label for="name_3"&gt;Citrix&lt;/label&gt;
      &lt;/div&gt;  
    &lt;div&gt;
  </code></pre>
  
  <p>How can I handle this with Twig?</p>