themes/webapicTheme/templates/site_gift_idea_page.html.twig line 1

Open in your IDE?
  1. {% extends '@SyliusShop/layout.html.twig' %}
  2. {# {% block title %}
  3.     Idées cadeaux | {{ parent() }}
  4. {% endblock %}
  5. {% block metatags %}
  6.     {{ parent() }}
  7.     <meta name="description" content="" />
  8. {% endblock %} #}
  9. {% block title %}{{ bitbag_cms_render_block('metatitle-gift') }} | {{ parent() }}{% endblock %}
  10. {% block metatags %}
  11.     {{ parent() }}
  12.     <meta name="description" content="{{ bitbag_cms_render_block('metadesc-gift')|striptags|raw|replace({"\n": "", "\r": "", "\t": ""}) }}" /> 
  13. {% endblock %}
  14. {% block container_css_classes %}
  15.     {% apply spaceless %}
  16.     bitbag_sylius_cms_plugin_shop_page_show
  17.     {% endapply %}
  18. {% endblock %}
  19. {% block content %}
  20. <div class="page-content typecms5" style="background-image: url('/webapic-theme/images/asupprimer/page-bg-content-full.png')">
  21.     {# Fil d'ariane #}
  22.     {{ wo_render_breadcrumbs() }}
  23. </div>
  24. <div class="bitbag-block">
  25.     <div class="block-type17">
  26.         <div class="block-type17-left">
  27.             {# <img src="{{ asset('webapic-theme/images/idee-cadeaux.jpg') }}"> #}
  28.             <img src="{{ asset('webapic-theme/images/idee-cadeaux-noel.jpg') }}">
  29.         </div>
  30.         <div class="block-type17-right">
  31.             <div class="block-type17-right-ctn">           
  32.                 <div class="block-type17-right-top">    
  33.                 <ul>
  34.                     {% for siteGiftIdeaLink in siteGiftIdeaLinks %}
  35.                     <li>
  36.                         <a href="{{ siteGiftIdeaLink.link|default('#') }}">{{ siteGiftIdeaLink.name }}</a>               
  37.                     </li>
  38.                     {% endfor %}
  39.                 </ul>        
  40.             </div>    
  41.             <div class="block-type17-right-form">                 
  42.                 <h1><span>{{ 'app.front.cadeaux.title1'|trans }}<br />{{ 'app.front.cadeaux.title2'|trans }}</span>{{ 'app.front.cadeaux.title3'|trans }}</h1>
  43.                 <h2>{{ 'app.front.cadeaux.title4'|trans }}</h2>
  44.                 <p>{{ 'app.front.cadeaux.title5'|trans }}</p>   
  45.                 <form method="get">
  46.                     {# {{dump(ages.configuration.choices)}} #}
  47.                     <ul class="top">
  48.                         <li class="active">                           
  49.                             {% if is_mobile() %}
  50.                                 {{ 'app.front.cadeaux.form1'|trans }}
  51.                             {% else %} 
  52.                                 {{ 'app.front.cadeaux.form2'|trans }}
  53.                             {% endif %} 
  54.                             {% if pour_qui != null %}
  55.                                 <span class="minus">({{ ('app.form.product_variant.gift_for.' ~ pour_qui)|trans }})</span>
  56.                             {% endif %} 
  57.                         </li>
  58.                         <li class="">
  59.                             {{ 'app.front.cadeaux.form3'|trans }}
  60.                             {% if quel_age != null and quel_age in ages.configuration.choices|keys %}
  61.                                 <span class="minus">({{ ages.configuration.choices[quel_age][sylius.localeCode] }})</span>
  62.                             {% endif %} 
  63.                         </li>
  64.                         <li class="">
  65.                             {{ 'app.front.cadeaux.form4'|trans }}
  66.                             {% if budget != null %}
  67.                                 <span class="minus">({{ (budget) }}€)</span>
  68.                             {% endif %} 
  69.                         </li>
  70.                     </ul>
  71.                     <ul class="bottom">
  72.                         <li class="active">
  73.                             <select name="pour_qui" placeholder="Pour qui">
  74.                                 <option value="" disabled>{{ 'app.front.cadeaux.form2'|trans }}</option>
  75.                                 <option value="">-</option>
  76.                                 {% for row in giftFor %}
  77.                                        <option value="{{ row }}"  {% if row == pour_qui %}selected{% endif %} >{{ ('app.form.product_variant.gift_for.' ~ row)|trans }}</option>
  78.                                 {% endfor %}
  79.                             </select>
  80.                             <span></span>
  81.                         </li>
  82.                         <li>
  83.                             <select name="quel_age" placeholder="Quel âge">
  84.                                 <option value="" disabled>{{ 'app.front.cadeaux.form3'|trans }}</option>
  85.                                 <option value="">-</option>
  86.                                 {% for key,age in ages.configuration.choices %}
  87.                                     <option value="{{ key }}" {% if key == quel_age %}selected{% endif %}>{{ age[sylius.localeCode] }}</option>
  88.                                 {% endfor %}
  89.                             </select>
  90.                             <span></span>
  91.                         </li>
  92.                         <li>
  93.                             <select name="budget" placeholder="Budget">
  94.                                 <option value="" disabled>{{ 'app.front.cadeaux.form4'|trans }}</option>
  95.                                 <option value="">-</option>
  96.                                 <option value="10" {% if budget == '10' %}selected{% endif %}>- 10€</option>
  97.                                 <option value="20" {% if budget == '20' %}selected{% endif %}>- 20€</option>
  98.                                 <option value="30" {% if budget == '30' %}selected{% endif %}>- 30€</option>
  99.                                 <option value="40" {% if budget == '40' %}selected{% endif %}>- 40€</option>
  100.                                 <option value="50" {% if budget == '50' %}selected{% endif %}>- 50€</option>
  101.                             </select>
  102.                             <span></span>
  103.                         </li>
  104.                     </ul>
  105.                     <button type="submit">{{ 'app.front.cadeaux.bottom1'|trans }} <i class="check icon"></i></button>
  106.                 </form> 
  107.             </div>
  108.         </div>
  109.     </div>
  110.     <div class="block-type17-bottom">
  111.         <h2>{{ 'app.front.cadeaux.bottom2'|trans }} <strong>{{ 'app.front.cadeaux.bottom3'|trans }}</strong>  !</h2>
  112.     </div>
  113. </div>
  114. <div class="ui six cards listing1 containergrid containergrid16 js-ajax-list-products bitbag-page-products" id="products">
  115.     {# Liste des produits en ajax #}
  116.     {{displayProducts | raw}}
  117. </div>
  118. {% include 'partials/block-dejavu.html.twig' %}
  119. {% endblock %}