templates/form/gift.html.twig line 146

Open in your IDE?
  1. {% extends 'layout.html.twig' %}
  2. {% form_theme form _self %}
  3. {% block head %}
  4.     {{ parent() }}
  5.     <meta name="robots" content="noindex, nofollow"/>
  6. {% endblock head %}
  7. {% block tel_widget -%}
  8.     {% if widget is constant('Misd\\PhoneNumberBundle\\Form\\Type\\PhoneNumberType::WIDGET_COUNTRY_CHOICE') %}
  9.         <div class="promo-config--field">
  10.             <span>{{ 'app.gift_form.placeholder.country' | trans }}</span>
  11.             {{- form_widget(form.country, {'attr':{'class' : 'promo-config--select  form-control' }}) -}}
  12.         </div>
  13.         <div class="promo-config--field">
  14.             <span>{{ 'app.gift_form.placeholder.phone' | trans }}</span>
  15.             {{- form_widget(form.number, {'attr':{'class' : 'promo-config--input  form-control' }}) -}}
  16.             {{ form_errors(form) }}
  17.         </div>
  18.     {% else -%}
  19.         {{- block('form_widget_simple') -}}
  20.     {%- endif %}
  21. {%- endblock tel_widget %}
  22. {% block header %}
  23.     {% include 'partials/global/header.html.twig' %}
  24. {% endblock header %}
  25. {% block content %}
  26.     {% block administration %}{% endblock %}
  27.     <main class="main-block--container">
  28.         <div class="promo-config--header">
  29.             <div class="container">
  30.                 <h4>{{ 'gift_form.process'|trans }}</h4>
  31.             </div>
  32.         </div>
  33.         <div class="container">
  34.             <form name="gift_form" method="POST" novalidate class="promo-config js-promo-form" action="{{ url('app_ecommerce_store_checkout', {id: gift.id}) }}">
  35.                 <div class="promo-config--container">
  36.                     <div class="promo-config--content js-gift" data-text="{{ 'app.gifthasextra.included' | trans }}">
  37.                         <div class="promo-config--first-col">
  38.                             <div class="promo-config--section is-focus">
  39.                                 <div class="promo-config--title is-focus">
  40.                                     <h4 id="gif-presonalize" class="">
  41.                                         <span>{{ 'gift_form.1'|trans }}</span>
  42.                                     </h4>
  43.                                 </div>
  44.                                 <div class="promo-config--block">
  45.                                     {% if gift.image %}
  46.                                         <div class="promo-config--image">
  47.                                             {% set Image = {
  48.                                                         url:  gift.image | resize(420)|file_url,
  49.                                                         alt: '',
  50.                                                         alternatives: [],
  51.                                                         height: 940,
  52.                                                         width: 1920
  53.                                                     } %}
  54.                                             <picture-component class="js-picture-component is-absolute" :image={{Image|json_encode()}}></picture-component>
  55.                                         </div>
  56.                                     {% endif %}
  57.                                     <div class="promo-config--text">
  58.                                         <h4>{{ gift.title }}</h4>
  59.                                         {% for giftHotel in gift.hotels %}<p>
  60.                                             <strong>{{ giftHotel }} / {{ giftHotel.city|upper }}</strong>
  61.                                         </p>{% endfor %}
  62.                                         {{ gift.description | raw }}
  63.                                         {{ gift.giftInfo1|raw }}
  64.                                     </div>
  65.                                 </div>
  66.                             </div>
  67.                             <h4 class="promo-config--title">
  68.                                 <span>2.
  69.                                     {{ 'app.gifts.personalize' | trans }}</span>
  70.                             </h4>
  71.                             <div class="promo-config--fields">
  72.                                 {#TODO @etebar nuevo campo check #}
  73.                                 {#<div class="promo-config--field is-check">#}
  74.                                 {#<input type="checkbox" name="gift">#}
  75.                                 {#<p>No deseo personalizar el regalo</p>#}
  76.                                 {#</div>#}
  77.                                     <div class="promo-config--field"> <label>{{ 'app.gift_form.placeholder.from' | trans }}</label>
  78.                                     {{ form_widget(form.from, {'attr':{'class' : 'promo-config--input is-required small-padding',
  79.                                     'placeholder':('app.gift_form.placeholder.namefull'|trans)}}) }}
  80.                                     {{ form_errors(form.from) }}
  81.                                 </div>
  82.                                 <div class="promo-config--field">
  83.                                     <label>{{ 'app.gift_form.placeholder.to' | trans }}</label>
  84.                                     {{ form_widget(form.to, {'attr':{'class' : 'promo-config--input is-required small-padding',
  85.                                     'placeholder':('app.gift_form.placeholder.namefull'|trans) }}) }}
  86.                                     {{ form_errors(form.to) }}
  87.                                 </div>
  88.                                 <div class="promo-config--field is-full">
  89.                                     <label>{{ 'app.gift_form.placeholder.dedication'|trans }}</label>
  90.                                     <div class="promo-config--field is-textarea">
  91.                                         {{ form_widget(form.dedication, {'attr':{'placeholder':('app.gift_form.placeholder.dedication'|trans),
  92.                                                     'class' : 'promo-config--input has-offset is-required',
  93.                                                     'cols':"30",
  94.                                                     'rows':"5",
  95.                                                     'maxlength':'300'
  96.                                                 }}) }}
  97.                                         <div class="promo-config--field-limit">{{ 'gift_form.limit'|trans }}</div>
  98.                                     </div>
  99.                                 </div>
  100.                             </div>
  101.                             {% if extraTypes| length > 0 %}
  102.                                 <h4 class="promo-config--title">
  103.                                     <span>3.
  104.                                         {{ 'gift_form.3'|trans }}</span>
  105.                                 </h4>
  106.                                 <div class="promo-config--fields">
  107.                                     {% for extraType in extraTypes %}
  108.                                         {% set extraTypeField = "extras"~loop.index %}
  109.                                         <div class="promo-config--field">
  110.                                             <p class="promo-config--extra">{{ extraType }}</p>
  111.                                             {{ form_widget(form.offsetGet(extraTypeField), {'attr':{'placeholder':('app.gift_form.placeholder.extras'~loop.index |trans), 'class' : 'promo-config--select js-extra-select' }}) }}
  112.                                         </div>
  113.                                     {% endfor %}
  114.                                 </div>
  115.                             {% endif %}
  116.                             <h4 id="gif-data" class="promo-config--title">
  117.                                 <span>{{ extraTypes| length > 0 ? '4.' : '3.' }}
  118.                                     {{ 'gift_form.4'|trans }}</span>
  119.                             </h4>
  120.                             <div class="promo-config--fields">
  121.                                 <div class="promo-config--field">
  122.                                     {# <span>{{ 'app.gift_form.placeholder.name' | trans }}</span> #}
  123.                                     {{ form_widget(form.billing.name, {'attr':{'class' : 'promo-config--input  form-control',
  124.                                     'placeholder':('app.gift_form.placeholder.name'|trans) }}) }}
  125.                                     {{ form_errors(form.billing.name) }}
  126.                                 </div>
  127.                                 <div class="promo-config--field">
  128.                                     {# <span>{{ 'app.gift_form.placeholder.surname' | trans }}</span> #}
  129.                                     {{ form_widget(form.billing.surname, {'attr':{'class' : 'promo-config--input  form-control',
  130.                                     'placeholder':('app.gift_form.placeholder.surname' | trans) }}) }}
  131.                                     {{ form_errors(form.billing.surname) }}
  132.                                 </div>
  133.                                 <div class="promo-config--field">
  134.                                     {# <span>{{ 'app.gift_form.placeholder.nif' | trans }}</span> #}
  135.                                     {{ form_widget(form.billing.nif, {'attr':{'class' : 'promo-config--input  form-control',
  136.                                     'placeholder':('app.gift_form.placeholder.nif' | trans) }}) }}
  137.                                     {{ form_errors(form.billing.nif) }}
  138.                                 </div>
  139.                                 <div class="field--spacer"></div>
  140.                                 <div class="promo-config--field is-full">
  141.                                     {# <span>{{ 'app.gift_form.placeholder.addressLine1' | trans }}</span> #}
  142.                                     {{ form_widget(form.billing.addressLine1, {'attr':{'class' : 'promo-config--input  form-control',
  143.                                     'placeholder':('app.gift_form.placeholder.addressLine1' | trans) }}) }}
  144.                                     {{ form_errors(form.billing.addressLine1) }}
  145.                                 </div>
  146.                                 <div class="promo-config--field is-full">
  147.                                     {# <span>{{ 'app.gift_form.placeholder.addressLine2' | trans }}</span> #}
  148.                                     {{ form_widget(form.billing.addressLine2, {'attr':{'class' : 'promo-config--input  form-control',
  149.                                     'placeholder':('app.gift_form.placeholder.addressLine2' | trans) }}) }}
  150.                                     {{ form_errors(form.billing.addressLine2) }}
  151.                                 </div>
  152.                                 <div class="promo-config--field">
  153.                                     {# <span>{{ 'app.gift_form.placeholder.city' | trans }}</span> #}
  154.                                     {{ form_widget(form.billing.city, {'attr':{'class' : 'promo-config--input  form-control',
  155.                                     'placeholder':('app.gift_form.placeholder.city' | trans) }}) }}
  156.                                     {{ form_errors(form.billing.city) }}
  157.                                 </div>
  158.                                 <div class="promo-config--field">
  159.                                     {# <span>{{ 'app.gift_form.placeholder.province' | trans }}</span> #}
  160.                                     {{ form_widget(form.billing.province, {'attr':{'class' : 'promo-config--input  form-control',
  161.                                     'placeholder':('app.gift_form.placeholder.province' | trans) }}) }}
  162.                                     {{ form_errors(form.billing.province) }}
  163.                                 </div>
  164.                                 <div class="promo-config--field">
  165.                                     {# <span>{{ 'app.gift_form.placeholder.postalCode' | trans }}</span> #}
  166.                                     {{ form_widget(form.billing.postalCode, {'attr':{'class' : 'promo-config--input  form-control',
  167.                                     'placeholder':('app.gift_form.placeholder.postalCode' | trans) }}) }}
  168.                                     {{ form_errors(form.billing.postalCode) }}
  169.                                 </div>
  170.                                 <div class="field--spacer"></div>
  171.                                 <div class="promo-config--field">
  172.                                     {# <span>{{ 'app.gift_form.placeholder.country' | trans }}</span> #}
  173.                                     {{ form_widget(form.billing.country, {'attr':{'class' : 'promo-config--input  form-control promo-config--select'}}) }}
  174.                                     {{ form_errors(form.billing.country) }}
  175.                                 </div>
  176.                                 <div class="promo-config--field">
  177.                                     {# <span>{{ 'app.gift_form.placeholder.email' | trans }}</span> #}
  178.                                     {{ form_widget(form.billing.email, {'attr':{'class' : 'promo-config--input  form-control',
  179.                                     'placeholder':('app.gift_form.placeholder.email' | trans) }}) }}
  180.                                     {{ form_errors(form.billing.email) }}
  181.                                 </div>
  182.                                 {{ form_widget(form.billing.phone, {'attr':{'class' : 'promo-config--input is-full form-control','placeholder':('app.gift_form.placeholder.email' | trans) }}) }}
  183.                             </div>
  184.                             <h4 class="promo-config--title">
  185.                                 <span>{{ extraTypes| length > 0 ? '5.' : '4.' }}
  186.                                     {{ 'app.global.shipping' | trans }}</span>
  187.                             </h4>
  188.                             <div class="promo-config--fields">
  189.                                 {% for choice in form.shipping_method.children %}
  190.                                     <div class="promo-config--field is-full">
  191.                                         <input class="promo-config--checkbox js-send-input" data-shipping-cost="{{ get_ecommerce_shipping_cost(choice.vars.value) }}" type="radio" name="{{ choice.vars.full_name }}" id="{{ loop.index }}" value="{{ choice.vars.value }}" {% if form.shipping_method.vars.data %} {{ choice.vars.checked ? 'checked' : '' }} {% else %} {{ loop.first ? 'checked' : '' }} {% endif %}>
  192.                                         <label for="{{ loop.index }}">
  193.                                             <span></span>
  194.                                             {{ choice.vars.label | trans }}</label>
  195.                                         {% if choice.vars.label == 'gift_form.picking_up' %}
  196.                                             <select class="promo-config--select" name="{{ form.children['picking_place'].vars.full_name }}" id="{{ form.children['picking_place'].vars.id }}">
  197.                                                 <option value="" {% if form.children['picking_place'].vars.data is null %} selected {% endif %}>
  198.                                                     {{ form.children['picking_place'].vars.placeholder|trans }}
  199.                                                 </option>
  200.                                                 {% for pick in form.children['picking_place'].vars.choices %}
  201.                                                     <option value="{{ pick.value }}" {% if form.children['picking_place'].vars.data == pick.value %} selected {% endif %}>
  202.                                                         {{ pick.label | trans }}
  203.                                                     </option>
  204.                                                 {% endfor %}
  205.                                             </select>
  206.                                             {% if form.children['picking_place'].vars.errors|length %}
  207.                                                 <ul class="list-unstyled">
  208.                                                     <li>{{ form.children['picking_place'].vars.errors[0].message|trans }}</li>
  209.                                                 </ul>
  210.                                             {% endif %}
  211.                                         {% endif %}
  212.                                     </div>
  213.                                 {% endfor %}
  214.                             <div class="promo-config--text">{{ 'gift_form.standard_shipping_conditions'|trans }}</div>
  215.                             <div class="promo-config--text">{{ 'gift_form.express_shipping_conditions'|trans }}</div>
  216.                         </div>
  217.                             <div class="promotion-options--tabs">
  218.                                 <div class="promotion-options--tab" data-option="1">
  219.                                     <div class="promo-config--option">
  220.                                         <h4 class="promo-config--title">
  221.                                             <span>{{ 'app.gift_form.send_to' | trans }}</span>
  222.                                         </h4>
  223.                                         <div class="promo-config--fields">
  224.                                             <div class="promo-config--field">
  225.                                                 {# <span>{{ 'app.gift_form.placeholder.name' | trans }}</span> #}
  226.                                                 {{ form_widget(form.email.name, {'attr':{'class' : 'promo-config--input  form-control',
  227.                                                 'placeholder':('app.gift_form.placeholder.name' | trans) }}) }}
  228.                                                 {{ form_errors(form.email.name) }}
  229.                                             </div>
  230.                                             <div class="promo-config--field">
  231.                                                 {# <span>{{ 'app.gift_form.placeholder.surname' | trans }}</span> #}
  232.                                                 {{ form_widget(form.email.surname, {'attr':{'class' : 'promo-config--input  form-control',
  233.                                                 'placeholder':('app.gift_form.placeholder.surname' | trans) }}) }}
  234.                                                 {{ form_errors(form.email.surname) }}
  235.                                             </div>
  236.                                             <div class="promo-config--field is-full">
  237.                                                 {# <span>{{ 'app.gift_form.placeholder.email' | trans }}</span> #}
  238.                                                 {{ form_widget(form.email.email, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.email' | trans) }}) }}
  239.                                                 {{ form_errors(form.email.email) }}
  240.                                             </div>
  241.                                             {{ form_widget(form.email.phone, {'attr':{'class' : 'promo-config--input  form-control' }}) }}
  242.                                             <div class="promo-config--field is-full">
  243.                                                 {# <span>{{ 'app.gift_form.placeholder.comment' | trans }}</span> #}
  244.                                                 {{ form_widget(form.email.comment, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.comment' | trans) }}) }}
  245.                                                 {{ form_errors(form.email.comment) }}
  246.                                             </div>
  247.                                         </div>
  248.                                     </div>
  249.                                 </div>
  250.                                 <div class="promotion-options--tab not-selected" data-option="2">
  251.                                     <div class="promo-config--option">
  252.                                         <h4 class="promo-config--title">
  253.                                             <span>{{ 'app.gift_form.send_to' | trans }}</span>
  254.                                         </h4>
  255.                                         <div class="promo-config--fields">
  256.                                             <div class="promo-config--field">
  257.                                                 {# <span>{{ 'app.gift_form.placeholder.name' | trans }}</span> #}
  258.                                                 {{ form_widget(form.shipping.name, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.name' | trans) }}) }}
  259.                                                 {{ form_errors(form.shipping.name) }}
  260.                                             </div>
  261.                                             <div class="promo-config--field">
  262.                                                 {# <span>{{ 'app.gift_form.placeholder.surname' | trans }}</span> #}
  263.                                                 {{ form_widget(form.shipping.surname, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.surname' | trans) }}) }}
  264.                                                 {{ form_errors(form.shipping.surname) }}
  265.                                             </div>
  266.                                             <div class="field--spacer"></div>
  267.                                             <div class="promo-config--field is-full">
  268.                                                 {# <span>{{ 'app.gift_form.placeholder.addressLine1' | trans }}</span> #}
  269.                                                 {{ form_widget(form.shipping.addressLine1, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.addressLine1' | trans) }}) }}
  270.                                                 {{ form_errors(form.shipping.addressLine1) }}
  271.                                             </div>
  272.                                             <div class="promo-config--field">
  273.                                                 {# <span>{{ 'app.gift_form.placeholder.city' | trans }}</span> #}
  274.                                                 {{ form_widget(form.shipping.city, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.city' | trans) }}) }}
  275.                                                 {{ form_errors(form.shipping.city) }}
  276.                                             </div>
  277.                                             <div class="promo-config--field">
  278.                                                 {# <span>{{ 'app.gift_form.placeholder.postalCode' | trans }}</span> #}
  279.                                                 {{ form_widget(form.shipping.postalCode, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.postalCode' | trans) }}) }}
  280.                                                 {{ form_errors(form.shipping.postalCode) }}
  281.                                             </div>
  282.                                             <div class="field--spacer"></div>
  283.                                             <div class="promo-config--field">
  284.                                                 {# <span>{{ 'app.gift_form.placeholder.country' | trans }}</span> #}
  285.                                                 {{ form_widget(form.shipping.country, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.country' | trans) }}) }}
  286.                                                 {{ form_errors(form.shipping.country) }}
  287.                                             </div>
  288.                                             <div class="promo-config--field">
  289.                                                 {# <span>{{ 'app.gift_form.placeholder.email' | trans }}</span> #}
  290.                                                 {{ form_widget(form.shipping.email, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.email' | trans) }}) }}
  291.                                                 {{ form_errors(form.shipping.email) }}
  292.                                             </div>
  293.                                             {{ form_widget(form.shipping.phone, {'attr':{'class' : 'promo-config--select  form-control' }}) }}
  294.                                             <div class="promo-config--field is-full">
  295.                                                 {# <span>{{ 'app.gift_form.placeholder.comment' | trans }}</span> #}
  296.                                                 {{ form_widget(form.shipping.comment, {'attr':{'class' : 'promo-config--input  form-control', 'placeholder':('app.gift_form.placeholder.comment' | trans) }}) }}
  297.                                                 {{ form_errors(form.shipping.comment) }}
  298.                                             </div>
  299.                                             {% do form.shipping.setRendered %}
  300.                                         </div>
  301.                                     </div>
  302.                                 </div>
  303.                                 <div class="promotion-options--tab not-selected" data-option="3">
  304.                                     <div class="promo-config--option">
  305.                                         <h4 class="promo-config--title">
  306.                                             <span>{{ 'app.gift_form.send_to' | trans }}</span>
  307.                                         </h4>
  308.                                         <div class="promo-config--fields">
  309.                                             <div class="promo-config--field">
  310.                                                 {# <span>{{ 'app.gift_form.placeholder.name' | trans }}</span> #}
  311.                                                 {{ form_widget(form.picking_up.name, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.name' | trans) }}) }}
  312.                                                 {{ form_errors(form.picking_up.name) }}
  313.                                             </div>
  314.                                             <div class="promo-config--field">
  315.                                                 {# <span>{{ 'app.gift_form.placeholder.surname' | trans }}</span> #}
  316.                                                 {{ form_widget(form.picking_up.surname, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.surname' | trans) }}) }}
  317.                                                 {{ form_errors(form.picking_up.surname) }}
  318.                                             </div>
  319.                                             <div class="promo-config--field is-full">
  320.                                                 {# <span>{{ 'app.gift_form.placeholder.email' | trans }}</span> #}
  321.                                                 {{ form_widget(form.picking_up.email, {'attr':{'class' : 'promo-config--input  form-control','placeholder':('app.gift_form.placeholder.email' | trans) }}) }}
  322.                                                 {{ form_errors(form.picking_up.email) }}
  323.                                             </div>
  324.                                             {{ form_widget(form.picking_up.phone, {'attr':{'class' : 'promo-config--input  form-control' }}) }}
  325.                                             <div class="promo-config--field is-full">
  326.                                                 {# <span>{{ 'app.gift_form.placeholder.comment' | trans }}</span> #}
  327.                                                 {{ form_widget(form.picking_up.comment, {'attr':{'class' : 'promo-config--input  form-control', 'placeholder':('app.gift_form.placeholder.comment' | trans) }}) }}
  328.                                                 {{ form_errors(form.picking_up.comment) }}
  329.                                             </div>
  330.                                         </div>
  331.                                     </div>
  332.                                 </div>
  333.                             </div>
  334.                             {% do form.shipping_method.setRendered %}
  335.                             {% do form.picking_place.setRendered %}
  336.                         </div>
  337.                         {% include 'partials/gift_detail/gift_popup.html.twig' %}
  338.                     </div>
  339.                     {% set title = gift ? gift.title : '' %}
  340.                     {% set giftTerms = gift ? gift.giftTerms : '' %}
  341.                     {% set price = gift ? gift.price : '' %}
  342.                     <div class="promo-resumee--container js-resumee" data-sticky-container>
  343.                         <div class="promo-resumee--block" data-sticky-class="is-sticky" data-margin-top="150">
  344.                             <div class="promo-resumee">
  345.                                 <h3 class="promo-resumee--section-title">{{ 'app.gift_cart.summary' | trans }}</h3>
  346.                                 <div class="promo-resumee--row">
  347.                                     <div class="promo-resumee--content">
  348.                                         <p class="promo-resumee--title">{{ title }}</p>
  349.                                         <p class="promo-resumee--text">{{ giftTerms }}</p>
  350.                                     </div>
  351.                                     <div class="promo-resumee--price" data-price="{{ price }}">{{ price }}
  352.                                         €</div>
  353.                                 </div>
  354.                                 <div class="promo-resumee--extra">
  355.                                     <p class="promo-resumee--title is-extra js-extra-title hidden">{{ 'app.gift_cart.extras_description' | trans }}</p>
  356.                                     <span class="js-extra"></span>
  357.                                 </div>
  358.                                 <div class="promo-resumee--send">
  359.                                     <p class="promo-resumee--title is-extra js-send-title hidden">{{ 'app.gift_cart.ship' | trans }}</p>
  360.                                     <span class="js-send"></span>
  361.                                 </div>
  362.                                 <div class="promo-resumee--total">
  363.                                     <p class="promo-resumee--total-text">{{ 'app.gift_cart.total' | trans }}:</p>
  364.                                     <div class="promo-resumee--price is-total js-total-price"></div>
  365.                                 </div>
  366.                                 <div class="promo-resumee--checks">
  367.                                     <div class="check--item">
  368.                                         <input class="check--input" type="checkbox" name="{{ form.billing.acceptOfferAndNew.vars.full_name }}" id="OfferAndNews" value="{{ form.billing.acceptOfferAndNew.vars.value }}">
  369.                                         <label for="newsletter">
  370.                                             <span></span>
  371.                                             {{ 'form.offer'|trans }}</label>
  372.                                     </div>
  373.                                     <div class="check--item">
  374.                                         <input class="check--input" type="checkbox" name="{{ form.privacy.vars.full_name }}" id="OfferAndNews" value="{{ form.privacy.vars.value }}">
  375.                                         <label for="privacy">
  376.                                             <a target="_blank" href="{{ url('aviso_legal') }}" class="promo-config--link" data-dest="popup-legal">{{ 'form.terms.privacy' | trans |capitalize }}</a>
  377.                                         </label>
  378.                                         {{ form_errors(form.privacy) }}
  379.                                         {% if not form.vars.valid %}
  380.                                             <ul class="list-unstyled">
  381.                                                 <li>
  382.                                                     <i class="fa fa-exclamation-circle" aria-hidden="true"></i>
  383.                                                     {{ 'gift_form.error'|trans }}</li>
  384.                                             </ul>
  385.                                         {% endif %}
  386.                                     </div>
  387.                                 </div>
  388.                             </div>
  389.                             <div class="promo-resumee--submit">
  390.                                 <input class="promo-config--submit button green js-send-form" type="submit" value="{{ 'app.global.continue' | trans }}">
  391.                             </div>
  392.                         </div>
  393.                     </div>
  394.                 </div>
  395.                 {% do form.billing.acceptOfferAndNew.setRendered %}
  396.                 {% do form.privacy.setRendered %}
  397.                 {{ form_rest(form) }}
  398.             </form>
  399.         </div>
  400.     </main>
  401. {% endblock content %}