custom/plugins/MadMyWerb/src/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  2. {% block bodymed_product_detail_mywerb %}
  3.     {% if  page.extensions.myWerb %}
  4.         {% if  page.extensions.Download %}
  5.             <div class="product-configuration-title h4">{{ "myWerb.detail.configuratorTitle"|trans }}</div>
  6.             <div data-my-werb="true" class="my-werb-container">
  7.                 <h2></h2>
  8.                 <div class="my-werb-download-box">
  9.                     <div class="row">
  10.                         <div class="col-4 col-sm-2 my-werb-download-box-icon">
  11.                             {% sw_icon "pdf" style{'pack':'bodymed'} %}
  12.                         </div>
  13.                         <div class="col-8 col-sm-5 my-werb-download-box-info">
  14.                             <div class="info-title">{{ "myWerb.detail.download.infoTitle"|trans }}</div>
  15.                             <div class="info-text">{{ "myWerb.detail.download.infoText"|trans }}</div>
  16.                         </div>
  17.                         <div class="col-sm-5 my-werb-download-box-button">
  18.                             {% if  page.extensions.Download %}
  19.                                 <a class="btn btn-primary" target="_blank" href="/mywerb/download/?number={{ page.product.productNumber }}&name={{ page.product.translated.name }}">{{ "myWerb.detail.download.btnText"|trans }}</a>
  20.                             {% else %}
  21.                                 <a class="btn btn-primary" href="#">{{ "myWerb.detail.download.btnText"|trans }}</a>
  22.                             {% endif %}
  23.                         </div>
  24.                     </div>
  25.                 </div>
  26.                 <div class="my-werb-container-divider"></div>
  27.                 <div class="my-werb-upload-box">
  28.                     <form data-form-csrf-handler="true" id="uploadform" method="post" enctype="multipart/form-data">
  29.                         <div class="row">
  30.                             <div class="col-sm-7">
  31.                                 <div id="drop-area">
  32.                                     <div class="row">
  33.                                         <div class="col-3 drop-area-icon is-info">
  34.                                             {% sw_icon "upload" style{'pack':'bodymed'} %}
  35.                                         </div>
  36.                                         <div class="col-3 drop-area-icon is-success">
  37.                                             {% sw_icon "checkmark" style{'pack':'bodymed'} %}
  38.                                         </div>
  39.                                         <div class="col-9">
  40.                                             <div class="drop-area-info">
  41.                                                 <div class="info-title">{{ "myWerb.detail.upload.infoTitle"|trans }}</div>
  42.                                                 <div class="info-text is-info">{{ "myWerb.detail.upload.infoText"|trans|raw }}</div>
  43.                                                 <div class="info-text is-success">{{ "myWerb.detail.upload.successText"|trans }}</div>
  44.                                             </div>
  45.                                         </div>
  46.                                     </div>
  47.                                     <input type="file" id="files" name="files"/>
  48.                                     <input type="hidden" id="articlenumber" name="articlenumber" value="{{ page.product.productNumber }}"/>
  49.                                     <!-- label class="button" for="fileElem">Select some files</label -->
  50.                                 </div>
  51.                                 <!-- input id="files" type="file" name="mywerb"  placeholder="Upload" -->
  52.                             </div>
  53.                             <div class="col-sm-5">
  54.                                 <input type="submit" value="{{ "myWerb.detail.upload.btnText"|trans }}" name="submit" class="btn btn-secondary">
  55.                                 {{ sw_csrf('frontend.mywerb.upload') }}
  56.                             </div>
  57.                         </div>
  58.                     </form>
  59.                     <div class="filelist"></div>
  60.                     <div id="result"></div>
  61.                 </div>
  62.             </div>
  63.         {% else %}
  64.         <div data-my-werb="true" class="my-werb-container">
  65.             {{ "myWerb.detail.upload.noService"|trans }}
  66.         </div>
  67.             {% endif %}
  68.     {% endif %}
  69. {% endblock %}