{{ form_start(form) }}
{{ form_label(form.date) }} {{ form_widget(form.date) }} {% if not form.date.vars.valid %}
{{ form_errors(form.date) }}
{% endif %}
{{ form_label(form.type) }} {{ form_widget(form.type) }} {% if not form.type.vars.valid %}
{{ form_errors(form.type) }}
{% endif %}
{{ form_widget(form) }} {{ form_end(form) }}