src/CoreBundle/Resources/views/Partials/productStockInformCustomer.html.twig line 1

Open in your IDE?
  1. {% if backUrl is not defined %}
  2.     {%
  3.         set backUrl = pimcore_url(
  4.         {
  5.             "name": product.urlTitle,
  6.             "articlenumber": product.articleNumber
  7.         },
  8.         "shopHandlerProductDetail"
  9.     ) %}
  10. {% endif %}
  11. {% set bundleNameTwig = document.getProperty('brandCode') %}
  12. <div style="margin-top: 20px;">
  13.     {% if productStockInformCustomerData.res %}
  14.         <p>
  15.             {% if productStockInformCustomerData.lastSent is not empty %}
  16.                  Sie wurden am {{ productStockInformCustomerData.lastSent.format('d.m.Y') }} über die Artikelverfügbarkeit informiert.
  17.                 <br>
  18.                 <a href="{{ pimcore_url({"action": "renew", "productId": product.id, "backurl": detailViewUri}, "productStockInformCustomer") }}">&rarr; Jetzt Erinnerung erneuern.</a>
  19.             {% else %}
  20.                 {% if productStockInformCustomerData.optIn == false %}
  21.                     &#10004; {{ 'productStockInformCustomer.add' | trans }}
  22.                 {% else %}
  23.                     &#10004; {{ 'productStockInformCustomer.entryAlreadyExistsCustomer' | trans }}
  24.                 {% endif %}
  25.             {% endif %}
  26.         </p>
  27.     {% else %}
  28.         <form action="{{ pimcore_url({"action": "add", "productId": product.id}, "productStockInformCustomer") }}" method="post">
  29.             <input type="hidden" name="backurl" value="{{ backUrl }}">
  30.             {% if user is empty %}
  31.                 {% if bundleNameTwig == 'Bbque' and labelBlack is defined and labelBlack %}
  32.                     <div style="color:#000;text-align: left">E-Mail</div>
  33.                 {% endif %}
  34.                 <input class="productStockInformCustomer-mail" type="email" required name="email" placeholder="E-Mail"/>
  35.             {% endif %}
  36.             <div style="margin: 10px 0 10px 0;{% if bundleNameTwig == 'Bbque'  %}color:{% if labelBlack is defined and labelBlack %}#000{% else %}#fff{% endif %}{% endif %}">
  37.                 <small>
  38.                     <span style="display: none;" id="hash_msg_entryAlreadyExistsCustomer_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.entryAlreadyExistsCustomer' | trans }}</span>
  39.                     <span style="display: none;" id="hash_msg_entryAlreadyExistsEmail_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.entryAlreadyExistsEmail' | trans }}</span>
  40.                     <span style="display: none;" id="hash_msg_add_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.add' | trans }}</span>
  41.                     <span style="display: none;" id="hash_msg_new_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.new' | trans }}</span>
  42.                     <span style="display: none;" id="hash_msg_renew_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.renew' | trans }}</span>
  43.                     <span style="display: none;" id="hash_msg_customerNotFound_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.customerNotFound' | trans }}</span>
  44.                     <span style="display: none;" id="hash_msg_entryAlreadyExistsEmailLastSent_{{ product.id }}" class="">
  45.                         {{ 'productStockInformCustomer.entryAlreadyExistsEmailLastSent' | trans }}
  46.                         {% if email is defined and email is not empty %}
  47.                             <br>
  48.                             <a href="{{ pimcore_url({"action": "renew", "email": email, "productId": product.id, "backurl": backUrl}, "productStockInformCustomer") }}">&rarr; Jetzt Erinnerung erneuern.</a>
  49.                         {% endif %}
  50.                     </span>
  51.                     <span style="display: none;" id="hash_msg_optInSuccess_{{ product.id }}" class="">&#10004; {{ 'productStockInformCustomer.optInSuccess' | trans }}</span>
  52.                 </small>
  53.             </div>
  54.             <button type="submit" class="button btn-default bb-line-height-normal" style="width:100%;">{{ 'Informieren bei Verfügbarkeit' | trans }}</button>
  55.         </form>
  56.     {% endif %}
  57. </div>