{% extends 'TwigBundle::form.html.twig' %}
{% block date_field %}
	{% if field.isfield %}
		{% set attr = attr|merge({'class': attr.class~' date-field', 'style': 'width: 200px'}) %}
        {{ block('text_field') }}
    {% else %}
        {{ field.pattern|replace({ '{{ year }}': form_widget(field.year), '{{ month }}': form_widget(field.month), '{{ day }}': form_widget(field.day) })|raw }}
    {% endif %}
{% endblock %}