{% extends 'default/form.html.twig' %} {% block content %} {{ form_start(form, {'attr': {'class': 'form-horizontal'}}) }}
{% if not form.vars.valid %} {# Loop through every form item #} {% for child in form.children %} {# Display the errors of the form item #} {% for error in child.vars.errors %}
{{error.message}}
{% endfor %} {% endfor %} {% endif %}
{{ form_widget(form.name, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Name'|trans}}"}}) }} {{ form_label(form.name, 'Form.Campaign.Name' | trans) }}
{{'Form.Campaign.Active' | trans}} *
{% for v in form.active %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{ form_widget(form.description, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Description'|trans}}"}}) }} {{ form_label(form.description, 'Form.Campaign.Description' | trans) }}
{{'Form.Campaign.Group' | trans}} *
{% for v in form.memberGroups %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{'Form.Campaign.Sending.Help' | trans}} *
{# #}
{% for t in form.sending %} {{ form_widget(t, {'attr': {'class': 'm-b-10 m-l-30 sendingCheck'}}) }} {{ form_label(t) }} {% endfor %}
{{ form_widget(form.repetition, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Frequency.Repeat.Label'|trans}}"}}) }} {{ form_label(form.repetition, 'Form.Campaign.Frequency.Repeat.Label' | trans) }} {{ 'Form.Campaign.Frequency.Repeat.Help' | trans }}
{{ form_widget(form.frequency, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Frequency.Help'|trans}}"}}) }} {{ form_label(form.frequency, 'Form.Campaign.Frequency.Label' | trans) }} {{ 'Form.Campaign.Frequency.Help' | trans }}
{{ form_widget(form.heure, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Frequency.Time'|trans}}"}}) }} {{ form_label(form.heure, 'Form.Campaign.Frequency.Time' | trans) }}
{{ form_widget(form.timezone, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Frequency.Timezone.Label'|trans}}"}}) }} {{ form_label(form.timezone, 'Form.Campaign.Frequency.Timezone.Label' | trans) }} {{ 'Form.Campaign.Frequency.Timezone.Help' | trans }}
{{ form_widget(form.semaine, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Frequency.Week.Label'|trans}}"}}) }} {{ form_label(form.semaine, 'Form.Campaign.Frequency.Week.Label' | trans) }} {{ 'Form.Campaign.Frequency.Week.Help' | trans }}
{{ form_widget(form.jour, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Frequency.Date.Label'|trans}}"}}) }} {{ form_label(form.jour, 'Form.Campaign.Frequency.Date.Label' | trans) }} {{ 'Form.Campaign.Frequency.Date.Help' | trans }}
{{'Form.Campaign.Channel.Help' | trans}} *
{{ form_widget(form.smsProvider, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Channel.SMS'|trans}}"}}) }} {{ form_label(form.smsProvider, 'Form.Campaign.Channel.SMS' | trans) }} {{ 'Form.Campaign.Channel.SMS.Help' | trans }}
{{ form_widget(form.voiceProvider, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Channel.Voice'|trans}}"}}) }} {{ form_label(form.voiceProvider, 'Form.Campaign.Channel.Voice' | trans) }} {{ 'Form.Campaign.Channel.Voice.Help' | trans }}
{{ form_widget(form.whatsAppProvider, {'attr': {'class': 'form-control form-select', 'placeholder':"{{'Form.Campaign.Channel.WhatsApp'|trans}}"}}) }} {{ form_label(form.whatsAppProvider, 'Form.Campaign.Channel.WhatsApp' | trans) }} {{ 'Form.Campaign.Channel.WhatsApp.Help' | trans }}
{{ form_widget(form.smsSenderID, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Channel.SMS.SenderID'|trans}}"}}) }} {{ form_label(form.smsSenderID, 'Form.Campaign.Channel.SMS.SenderID' | trans) }}
{{ form_widget(form.voiceSenderID, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Channel.Voice.SenderID'|trans}}"}}) }} {{ form_label(form.voiceSenderID, 'Form.Campaign.Channel.Voice.SenderID' | trans) }}
{{ form_widget(form.whatsAppSenderID, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Channel.WhatsApp.SenderID'|trans}}"}}) }} {{ form_label(form.whatsAppSenderID, 'Form.Campaign.Channel.WhatsApp.SenderID' | trans) }}
{{'Form.Campaign.Message.Help' | trans}} *
{{ form_widget(form.text, {'attr': {'class': 'form-control', 'placeholder':"{{'Form.Campaign.Text'|trans}}"}}) }} {{ form_label(form.text, 'Form.Campaign.Text' | trans) }}
{{'Form.Campaign.Send.Text.Channel' | trans}} *
{% for v in form.textChannel %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{ form_label(form.fileImage, 'Form.Campaign.Image' | trans) }} {{ form_widget(form.fileImage, {'attr': {'class': 'form-control'}}) }}
{{'Form.Campaign.Send.Image.Channel' | trans}} *
{% for v in form.imageChannel %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{ form_label(form.fileAudio, 'Form.Campaign.Audio' | trans) }} {{ form_widget(form.fileAudio, {'attr': {'class': 'form-control'}}) }}
{{'Form.Campaign.Send.Audio.Channel' | trans}} *
{% for v in form.audioChannel %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{ form_label(form.fileVideo, 'Form.Campaign.Video' | trans) }} {{ form_widget(form.fileVideo, {'attr': {'class': 'form-control'}}) }}
{{'Form.Campaign.Send.Video.Channel' | trans}} *
{% for v in form.videoChannel %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{ form_label(form.fileSticker, 'Form.Campaign.Sticker' | trans) }} {{ form_widget(form.fileSticker, {'attr': {'class': 'form-control'}}) }}
{{'Form.Campaign.Send.Sticker.Channel' | trans}} *
{% for v in form.stickerChannel %} {{ form_widget(v, {'attr': {'class': ''}}) }} {{ form_label(v) }} {% endfor %}
{{'Form.Return' | trans}}
{{ form_rest(form) }} {{ form_end(form) }} {% endblock %} {% block custom_js %} {{parent()}} {% endblock %} {#% block validation %}{% endblock %#}