templates/home/blocks/newsletter.html.twig line 1

Open in your IDE?
  1. <div class="form_newsletter">
  2.     <div class="opener">
  3.         <div class="icon"></div>
  4.         <h2 class="title uppercase">{% if data.title_form_sarb is defined %}{{ data.title_form_sarb }}{% endif %}</h2>
  5.         <p>{% if data.descr_form_sarb is defined %}{{ data.descr_form_sarb }}{% endif %}</p>
  6.     </div>
  7.     {% if app.request.getLocale() == 'fr' %}
  8.         <form   
  9.         id="sb_form"
  10.         onsubmit="process2(
  11.         'https://services.sarbacane.com/core/v1/forms/contacts/upsert?listID=UoDsQYS5RMyaQgHwod4hMQ&formID=LbBFRnTETWCEdFygZ-Nsag&timezone=Europe/Paris', 'https://forms.sbc29.com/', '5e833f98b95cee23e8abf69a', 'false', 'message',
  12.         '', 'https://services.sarbacane.com/core/v1/transactional/sendmessage/optin', 'Merci', 'Vos informations ont été ajoutées avec succès.',
  13.         'Vous allez recevoir un email', 'Vous devrez cliquer sur le lien de confirmation pour valider votre inscription', 'Erreur',
  14.         'Une erreur inattendue s%27est produite.', 'Le formulaire est en cours d%27édition, veuillez patienter quelques minutes avant d%27essayer à nouveau.', '',
  15.         '', ''
  16.         );
  17.         return false;"
  18.         method="post" >
  19.     {% else %}
  20.         <form   
  21.         id="sb_form"
  22.         onsubmit="process2(
  23.         'https://services.sarbacane.com/core/v1/forms/contacts/upsert?listID=YFYIy6FYTUatiKi71OWwEg&formID=4zWkAzJ3RsSx12ca_-KTfg&timezone=Europe/Paris', 'https://forms.sbc35.com/', '5e833f98b95cee23e8abf69a', 'false', 'message',
  24.         '', 'https://services.sarbacane.com/core/v1/transactional/sendmessage/optin', 'Thank You', 'Your information has been successfully added.',
  25.         'Vous allez recevoir un email', 'Vous devrez cliquer sur le lien de confirmation pour valider votre inscription', 'Erreur',
  26.         'Une erreur inattendue s%27est produite.', 'Le formulaire est en cours d%27édition, veuillez patienter quelques minutes avant d%27essayer à nouveau.', '',
  27.         '', ''
  28.         );
  29.         return false;"
  30.         method="post" >
  31.     {% endif %}
  32.         <span class="civ" style="display: flex;flex-direction: row;">
  33.             <label id="label-CIVILITY_ID">{{ 'form.civilite'|trans }}*</label>
  34.             <div id="form-mandatory">*</div>
  35.         </span>
  36.         <div id="div-CIVILITY_ID">
  37.             <div style="margin-bottom: 13px; display: flex; flex-direction: row;">
  38.                 <label class="control control--radio">
  39.                     <input type="radio" value="{{ 'form.madame'|trans }}" name="CIVILITY_ID" required="true" sb-form-input/>
  40.                     <div id="indicator-CIVILITY_ID" class="control__indicator"></div>
  41.                 </label>
  42.                 <label id="label-opt-CIVILITY_ID">{{ 'form.madame'|trans }}</label>
  43.             </div>
  44.             <div style="margin-bottom: 13px; display: flex; flex-direction: row;">
  45.                 <label class="control control--radio">
  46.                     <input type="radio" value="{{ 'form.monsieur'|trans }}" name="CIVILITY_ID" required="true" sb-form-input/>
  47.                     <div id="indicator-CIVILITY_ID" class="control__indicator"></div>
  48.                 </label>
  49.                 <label id="label-opt-CIVILITY_ID">{{ 'form.monsieur'|trans }}</label>
  50.             </div>
  51.         </div>
  52.         <div class="cols">
  53.             <span style="display: flex;flex-direction: row;">
  54.                 <label id="label-FIRSTNAME_ID">{{ 'form.prenom'|trans }}</label>
  55.                 <div id="form-mandatory">*</div>
  56.             </span>
  57.             <input id="input-FIRSTNAME_ID" type="text" name="FIRSTNAME_ID" required="true" placeholder="{{ 'form.votre'|trans }} {{ 'form.prenom'|trans }} *" sb-form-input>
  58.             <span style="display: flex;flex-direction: row;">
  59.                 <label id="label-LASTNAME_ID">{{ 'form.nom'|trans }}</label>
  60.                 <div id="form-mandatory">*</div>
  61.             </span>
  62.             <input id="input-LASTNAME_ID" type="text" name="LASTNAME_ID" required="true" placeholder="{{ 'form.votre'|trans }} {{ 'form.nom'|trans }} *" sb-form-input>
  63.             <span style="display: flex;flex-direction: row;">
  64.                 <label id="label-EMAIL_ID">{{ 'form.email'|trans }}</label>
  65.                 <div id="form-mandatory">*</div>
  66.             </span>
  67.             <input id="input-email" type="email" name="email" required="true" placeholder="{{ 'form.votre'|trans }} {{ 'form.email'|trans }} *" sb-form-input>
  68.             <span style="display: flex;flex-direction: row;">
  69.                 <label id="label-PHONE_ID">{{ 'form.phone'|trans }}</label>
  70.             </span>
  71.             <input id="input-phone" type="tel" name="phone" placeholder="{{ 'form.votre'|trans }} {{ 'form.phone'|trans }}" sb-form-input>
  72.             <span style="display: flex;flex-direction: row;">
  73.                 <label id="label-tu035e2dll8ao6ox2xk1x">{{ 'form.company'|trans }}</label>
  74.             </span>
  75.             <input id="input-tu035e2dll8ao6ox2xk1x" type="text" name="tu035e2dll8ao6ox2xk1x" placeholder="{{ 'form.votre'|trans }} {{ 'form.company'|trans }}" sb-form-input>
  76.         
  77.             <div id="div-submitInput" align="left">
  78.                 <button id="submitInput" type="submit" value="VALIDER" class="mobile-FW" >
  79.                     <span style="margin:0;">{{ 'form.send'|trans }}</span>
  80.                 </button>
  81.                 <div class="loader" style="display:none"></div>
  82.             </div>
  83.         </div>
  84.         <label id="form-footer-mandatory">* {{ 'form.required'|trans }}</label>
  85.     </form>
  86. </div>