{{ form_start(form, {'attr':{'method':'post', 'action': path('order_product', {'product': product.id }),'class':'form-horizontal'}}) }}
Offre {{ product.name }}
{% if newPrice == 0 and free == false %}
A partir de {{ product.price | number_format(2,',', ' ') }} €/mois
{% if product.trialDays > 0 %}
{{ product.trialDays }} jours d'essai gratuit
{% endif %}
{% elseif free == false %}
A partir de {{ product.price | number_format(2,',', ' ') }}
{{ newPrice | number_format(2,',', ' ') }}
€/mois
Code promotion activé : {{ codePromo }}
{% if trialDays > 0 %}
{{ trialDays }} jours d'essai gratuit
{% endif %}
{% else %}
A partir de {{ product.price | number_format(2,',', ' ') }}
GRATUIT
Code promotion activé : {{ codePromo }}
{% endif %}
{% if not codePromo %}
{% else %}
{{ form_widget(form.codePromo, {'attr':{'class':'d-none'}}) }}
{% endif %}
Étape 2 : choix du thème
{{ form_start(form, {'attr':{'method':'post', 'action': path('order_index', {'product': product.id }),'class':'form-horizontal'}}) }}
{{ form_label(form.name, null, {'label_attr':{'class':'g-mb-10'}}) }}
{{ form_widget(form.name, {'attr':{'class':'form-control form-control-md rounded-0'}}) }}
{{ form_errors(form.name) }}
{{ form_label(form.colorTheme, null, {'label_attr':{'class':'g-mb-10'}}) }}
{{ form_widget(form.colorTheme, {'attr':{'class':'form-control form-control-md rounded-0 colorpicker'}}) }}
{{ form_label(form.logo, null, {'label_attr':{'class':'control-label'}}) }}
{{ form_widget(form.logo, {'attr':{'class':'js-file-attachment'}}) }}
{{ form_label(form.template, null, {'label_attr':{'class':'g-mb-10'}}) }}
{{ form_errors(form.template) }}
{% for template in templates %}
{{ template.name }}
{{ template.description }}
{% endfor %}
{{ form_end(form) }}