{% extends "admin/layout.html.twig" %} {% block content %}
{% include '@CraueFormFlow/FormFlow/stepList.html.twig' %}
{{ form_start(form) }} {{ form_errors(form) }} {% if flow.getCurrentStepNumber() == 1%}

Choix du type de Mailing

{{ form_label(form.type,'Choix du type')}} {{ form_row(form.type)}}
{% endif %} {% if flow.getCurrentStepNumber() == 2%}

Choix du client

{{ form_label(form.client,'Choix du client')}} {{ form_row(form.client,{'attr':{'class':'form-control'}}) }}
{% endif %} {% if flow.getCurrentStepNumber() == 3%}

Choix du distributeur

{{ form_label(form.distributeur,'Choix du distributeur')}} {{ form_row(form.distributeur) }}
{% endif %} {% if flow.getCurrentStepNumber() == 4%}

Configuration des Events

{{ form_label(form.name,'Intitulé du mailing...') }} {{ form_row(form.name,{'attr':{'placeholder':'Nom du mailing'}})}}

Liste des Events

{% for EventDates in form.Dates %}
{{ form_errors(EventDates) }} {{ form_row(EventDates.Date,{'attr': {'class':'form-control datepicker','id':'date', 'placeholder':'JJ-MM-AAAA HH-SS'}}) }}
{{ form_errors(EventDates) }} {{ form_label(EventDates.Libelle,'Évènement')}} {{ form_row(EventDates.Libelle) }}
{{ form_errors(EventDates) }} {{ form_row(EventDates.Status,{'attr':{'readonly':'readonly'}}) }}
{{ form_errors(EventDates) }} {{ form_row(EventDates.id,{'attr':{'readonly':'readonly'}}) }}
{% endfor %}
{% endif %} {% if flow.getCurrentStepNumber() == 5%}

Récapitulatif de planification

Nom du maling : {{flow.formData.name}}

Client : {{flow.formData.Client.codeClient}}

Distributeur : {{flow.formData.Distributeur.code}}

Récapitulatif des Events :

    {% for Dates in flow.formData.Dates %}
  • Planification au {{Dates.Date}} à {# {{Dates.Horaire}} #} pour {{Dates.Libelle}}
  • {% endfor %}
{% endif %} {{ form_row(form._token) }} {% include '@CraueFormFlow/FormFlow/buttons.html.twig' with { craue_formflow_button_render_reset : false, craue_formflow_button_class_back: 'btn btn-primary', craue_formflow_button_class_last: 'btn btn-primary', craue_formflow_button_class_reset: 'btn btn-warning', craue_formflow_button_label_last: 'Suivant', craue_formflow_button_label_back: 'Précédent', craue_formflow_button_label_finish : 'Envoyé', craue_formflow_button_label_reset: 'Reset', } %} {{ form_rest(form) }} {{ form_end(form) }}
{% endblock %}