{% verbatim %}{{ form_start(form, { attr : { class : 'form-horizontal' } }) }}{% endverbatim %}

{% for field in form.fields %}

<!-- Field #{{ field.volgorde }} {{ field.titel }} -->
<div class="form-group row {% verbatim %}{%{% endverbatim %} if form.{{ field.referentie }}.vars.errors|length > 0 {% verbatim %}%}{% endverbatim %}has-error{% verbatim %}{%{% endverbatim %} endif {% verbatim %}%}{% endverbatim %}">
    <label for="{% verbatim %}{{{% endverbatim %} form.{{ field.referentie }}.vars.id {% verbatim %}}}{% endverbatim %}" class="col-xs-12 col-sm-4 control-label">{{ field.titel }} {% if field.verplicht %}<sup class="required">*</sup>{% endif %}</label>
    <div class="col-xs-12 col-sm-8">
        {% verbatim %}{{{% endverbatim %} form_widget(form.{{ field.referentie }}) {% verbatim %}}}{% endverbatim %}
        {% verbatim %}{{{% endverbatim %} form_errors(form.{{ field.referentie }}) {% verbatim %}}}{% endverbatim %}
    </div>
</div>
        
{% endfor %}

<div class="form-group row">
    <div class="col-xs-12 col-sm-8 col-sm-push-4">
        {% verbatim %}{{ form_errors(form) }}{% endverbatim %}
        <button type="submit" class="btn btn-primary">Verstuur</button>
    </div>
</div>
        
{% verbatim %}{{ form_end(form) }}{% endverbatim %}