Currently I use Symfony 3.0 with the default Bootstrap 3 form template.
bootstrap_3_layout.html.twig
I like to extend the form template to have all my checkboxes like this:
<div class="md-checkbox-list">
<div class="md-checkbox">
<input type="checkbox" id="checkbox1" class="md-check">
<label for="checkbox1">
<span></span>
<span class="check"></span>
<span class="box"></span> Option 1 </label>
</div>
<div class="md-checkbox">
<input type="checkbox" id="checkbox2" class="md-check" checked>
<label for="checkbox2">
<span></span>
<span class="check"></span>
<span class="box"></span> Option 2 </label>
</div>
<div class="md-checkbox">
<input type="checkbox" id="checkbox3" class="md-check">
<label for="checkbox3">
<span></span>
<span class="check"></span>
<span class="box"></span> Option 3 </label>
</div>
<div class="md-checkbox">
<input type="checkbox" id="checkbox4" disabled class="md-check">
<label for="checkbox4">
<span></span>
<span class="check"></span>
<span class="box"></span> Disabled </label>
</div>
</div>
How could I do this? I tried a lot of things but I don't get it working. The Symfony Form templates are really complicated. Changes of some inputs or other easy things are working fine but checkboxes are not easy.
I hope somebody could help me because I have a lot of designs like these where I don't understand how to modify the checkbox style to look like this.