I created two custom form types in Symfony2 and their respective twig templates. When reading the documentation, I noticed they call the twig "fields.html.twig". This lead me to believe that I could define multiple blocks in a single file, but I can't seem to understand how? Here's my current fields.html.twig file:
{% block open_range_widget %}
<div class="open_range_widget" style="display: inline;">
<div class="field" style="display: inline;">
{{ form_errors(form.sel) }}
{{ form_widget(form.sel) }}
</div>
<div class="field" style="display: inline;">
{{ form_errors(form.val) }}
{{ form_widget(form.val) }}
</div>
</div>
{% endblock %}
{% block range_widget %}
<div class="range_widget" >
<div class="field" style="display: inline; width: 50%">
{{ form_errors(form.min) }}
{{ form_widget(form.min) }}
</div>
<div class="field" style="display: inline; width: 50%">
{{ form_errors(form.max) }}
{{ form_widget(form.max) }}
</div>
</div>
{% endblock %}