{% extends 'base.html.twig' %} {# custom form #} {% form_theme form _self %} {% block _worktop_plates_entry_row %}
{{ form_widget(form.length, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(form.length)}}
{{ form_widget(form.width, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(form.width)}}
{{ form_widget(form.thickness, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(form.thickness)}}
{% endblock %} {% block _worktop_splashbacks_entry_row %}
{{ form_widget(form.length, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_widget(form.width, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_widget(form.thickness, { 'attr': {'class': 'w-full md:w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{% endblock %} {# custom form #} {% block body %}

Prix total HT

0.00€

{{ form_start(form, {'attr': {'id': 'worktop-quotation-form'}}) }}

Mon plan de travail

{{ form_label(form.material.name) }}
{{ form_widget(form.material.name, {'attr':{'class': 'w-full md:w-48 h-10 text-xs border-slate-200 rounded bg-slate-100'}}) }}
{{ form_errors(form.material.name)}}
{{ form_label(form.material.colour) }}
{{ form_widget(form.material.colour, {'attr':{'class': 'w-full md:w-48 h-10 text-xs border-slate-200 rounded bg-slate-100'}}) }}
{{ form_errors(form.material.colour)}}
{{ form_label(form.material.finish) }}
{{ form_widget(form.material.finish, {'attr':{'class': 'w-full md:w-48 h-10 text-xs border-slate-200 rounded bg-slate-100'}}) }}
{{ form_errors(form.material.finish)}}

Plaque

Quantité - +
{{ form_row(form.plates) }}

Crédence

Quantité - +
{{ form_row(form.splashbacks) }}

Style de chanfrein

{{ form_widget(form.edgeShape, { 'attr': {'class': 'w-32 h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(form.edgeShape)}}

Options

{% for choice in form.option.vars.choices %} {% endfor %}
{{ choice.label}}
option Prix HT: {{ choice.data.price | format_currency('EUR') }}
{% do form.option.setRendered() %}

Contact

{{ form_widget(contactForm.isPro, { 'attr': {'class': 'border-slate-200 rounded bg-slate-100'} }) }}
{{ form_label(contactForm.isPro) }}
{{ form_label(contactForm.lastname) }}
{{ form_widget(contactForm.lastname, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.lastname)}}
{{ form_label(contactForm.firstname) }}
{{ form_widget(contactForm.firstname, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.firstname)}}
{{ form_label(contactForm.email) }}
{{ form_widget(contactForm.email, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.email)}}
{{ form_label(contactForm.phone) }}
{{ form_widget(contactForm.phone, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.phone)}}
{{ form_label(contactForm.zipcode) }}
{{ form_widget(contactForm.zipcode, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.zipcode)}}
{{ form_label(contactForm.city) }}
{{ form_widget(contactForm.city, { 'attr': {'class': 'w-full h-10 text-xs border-slate-200 rounded bg-slate-100'} }) }}
{{ form_errors(contactForm.city)}}
{{ form_label(contactForm.comment) }}
{{ form_widget(contactForm.comment, { 'attr': {'class': 'w-full text-xs border-slate-200 rounded bg-slate-100', 'rows': '3'} }) }}
{{ form_widget(contactForm._token) }}
{{ form_end(form) }}
{% endblock %} {% block javascripts %} {% endblock %}