templates/front/messages/thanks.html.twig line 1

Open in your IDE?
  1. {% extends "front/_common/_base.html.twig" %}
  2. {% block linkcanonical %}
  3.     <link rel="canonical" href="{{ absolute_url(path('thanks')) }}">
  4. {% endblock %}
  5. {% block cssadicional %}{% endblock %}
  6. {% block jsaditional %}
  7.     <script>
  8.         if (typeof fbq === 'function') {
  9.             fbq('track', 'CompleteRegistration');
  10.         }
  11.     </script>
  12. {% endblock %}
  13. {% block classbody %}{% endblock %}
  14. {% block content %}
  15.     <section class="b30General">
  16.         <div class="wanchoSecondary">
  17.             <div class="b30GeneralWrap">
  18.                 <div class="b30GeneralWrapLeft">
  19.                     {% if message == 'thanks_claim' %}
  20.                         {% if forms.graciasTitulo %}
  21.                             <h4 class="b30GeneralTitle b30GeneralTitleP">{{ forms.graciasTitulo }}</h4>
  22.                         {% elseif info.sentTitle1 %}
  23.                             <h4 class="b30GeneralTitle b30GeneralTitleP">{{ info.sentTitle1 }}</h4>
  24.                         {% endif %}
  25.                         {% if forms.graciasTexto %}
  26.                             <div class="b30GeneralText">
  27.                                 {{ forms.graciasTexto|raw }}
  28.                             </div>
  29.                         {% elseif info.sentText %}
  30.                             <div class="b30GeneralText">
  31.                                 {{ info.sentText|nl2br }}
  32.                             </div>
  33.                         {% endif %}
  34.                         <div class="b30ClaimCode">
  35.                             <p><strong>Código de seguimiento:</strong> {{ claim_code }}</p>
  36.                         </div>
  37.                         <div class="b30GeneralBtn">
  38.                             <a href="{{ path('home') }}" class="buttonStandard border">{{ info.sentButtonHomeText|default('Volver al inicio') }}</a>
  39.                             <a href="{{ path('claim_pdf', {'uniq': claim_uniq}) }}" class="buttonStandard gray" target="_blank">Descargar PDF</a>
  40.                         </div>
  41.                     {% else %}
  42.                         {% if info.sentTitle1 %}
  43.                             <h4 class="b30GeneralTitle b30GeneralTitleP">{{ info.sentTitle1 }}</h4>
  44.                         {% endif %}
  45.                         {% if info.sentTitle2 %}
  46.                             <h5 class="b30GeneralTitle b30GeneralTitleS">{{ info.sentTitle2 }}</h5>
  47.                         {% endif %}
  48.                         {% if info.sentText %}
  49.                             <div class="b30GeneralText">
  50.                                 {{ info.sentText|nl2br }}
  51.                             </div>
  52.                         {% endif %}
  53.                         <div class="b30GeneralBtn">
  54.                             <a href="{{ path('home') }}" class="buttonStandard border">{{ info.sentButtonHomeText }}</a>
  55.                             <a href="{{ path('trucks') }}" class="buttonStandard gray">{{ info.sentButtonModelsText }}</a>
  56.                         </div>
  57.                     {% endif %}
  58.                 </div>
  59.                 <div class="b30GeneralWrapRight">
  60.                     <picture>
  61.                         <img src="{{ asset(info.sentImage|image_path) }}" alt="{{ info.sentImage|image_alt }}">
  62.                     </picture>
  63.                 </div>
  64.             </div>
  65.         </div>
  66.     </section>
  67. {% endblock %}
  68. {% block jsfinal %}{% endblock %}