templates/catalog/snippets/modal.html.twig line 70

Open in your IDE?
  1. <!-- Modal -->
  2. <div class="modal border-0 fade pr-0 catalog-modal" id="catalogModal-{{ article is defined ? article.id }}" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  3.     <div class="modal-dialog modal-lg modal-dialog-centered" role="document" style="max-width: 680px;">
  4.         <div class="modal-content">
  5.             <div class="modal-header border-0">
  6.                 <button type="button" class="close" data-dismiss="modal" aria-label="Close" style="opacity: 1;">
  7.                 <span aria-hidden="true" class="text-indigo">&times;</span>
  8.                 </button>
  9.             </div>
  10.             <div class="modal-body px-5 px-lg-5 px-md-5">
  11.                 <div class="row">
  12.                     {% if addresses is defined and addresses and not lastCatalog %}
  13.                         <div class="col-lg-6">
  14.                             <h3 class="font-weight-bold mb-3 mb-lg-3 mb-md-3">Order Print Catalog</h3>
  15.                             <div class="order-catalog-text">
  16.                                 <small class="font-weight-bold text-silver">
  17.                                     DEFAULT SHIPPING ADDRESS
  18.                                 </small>
  19.                             </div>
  20.                             {% for address in addresses %}
  21.                                 <div class="{{ defaultShippingAddress != address.id ? 'd-none' }}" data-address-id="{{ address.id }}">
  22.                                     <p class="mb-0 text-deepGray mt-3 mt-lg-3 mt-md-3">{{ address.fullname }}</p>
  23.                                     <p class="mb-0 text-deepGray">{{ address.street_address }}</p>
  24.                                     <p class="mb-0 text-deepGray">{{ address.zip_code }} {{ address.city }}</p>
  25.                                     <p class="mb-0 text-deepGray">{{ address.stateDisplay }}</p>
  26.                                     <p class="mb-0 text-deepGray">{{ address.countryName }}</p>
  27.                                     <p class="mb-0 text-deepGray">{{ address.phone }}</p>
  28.                                 </div>
  29.                             {% endfor %}
  30.                             <div class="select-ghost" style="margin-left: -27px;">
  31.                                 <select name="catalog_shipping_addresses" id="catalog_shipping_addresses-{{article.id}}" style="max-width: 200px;">
  32.                                     {% if addresses is defined %}
  33.                                         <option value="" disabled selected>
  34.                                             SELECT OTHER ADDRESS
  35.                                         </option>
  36.                                         {% for address in addresses %}
  37.                                             <option value="{{ address.id }}">
  38.                                                 {{ address.label }}
  39.                                             </option>
  40.                                         {% endfor %}
  41.                                     {% endif %}
  42.                                         <option value="new">{{ 'Add new' | trans }}</option>
  43.                                 </select>
  44.                             </div>
  45.                         </div>
  46.                     {% else %}
  47.                         <div class="col-lg-6">
  48.                             <h3 class="font-weight-bold mb-3 mb-lg-3 mb-md-3">Order Print</h3>
  49.                             <div class="order-catalog-text">
  50.                                 <p>Please complete the form to receive your free product catalog from Stoelting Co.</p>
  51.                             </div>
  52.                         </div>
  53.                     {% endif %}
  54.                     <div class="col-lg-6 d-flex justify-content-center">
  55.                         {{ article.feature_image.getThumbnail('catalog').getHtml({class: 'mb-2 mb-lg-2 mb-md-2', alt: article.title}) | raw }}
  56.                     </div>
  57.                 </div>
  58.                 <div class="row">
  59.                     <div class="col-lg-12">
  60.                         {% include 'catalog/snippets/form.html.twig' with modalForms[article.id] %}
  61.                     </div>
  62.                 </div>
  63.             </div>
  64.             <div class="modal-footer border-0 mb-3 mb-lg-3 mb-md-3 px-5 px-lg-5 px-md-5 {{ not addresses or lastCatalog ? 'd-none' }}">
  65.                 <!-- <a class="btn btn-primary btn-primary--ghost" data-dismiss="modal">
  66.                     Anwser no
  67.                 </a> -->
  68.                 <form action="{{ path('catalog_email_send', {'division': getSiteDivision()}) }}" method="POST" class="m-0 d-flex w-100 align-items-end">
  69.                     <div class="d-flex flex-column mr-auto">
  70.                         <div class="mb-1 mb-lg-1 mb-md-1 text-deepGray">
  71.                             Quantity
  72.                         </div>
  73.                         <div class="border border-pearl d-flex custom-input-number" style="width: 105px;">
  74.                             <button type="button" disabled="disabled" class="custom-input-number-button custom-input-number-button--down"><span class="custom-input-number-arrow"></span></button>
  75.                                 <input type="number" class="text-deepGray" id="quantity-{{ article.id }}" name="quantity" required="required" placeholder="stoelting.quantity" min="1" max="100" value="1">
  76.                             <button type="button" class="custom-input-number-button custom-input-number-button--up"><span class="custom-input-number-arrow custom-input-number-arrow--up"></span></button>
  77.                         </div>
  78.                     </div>
  79.                     <input type="text" name="address" value="{{ defaultShippingAddress }}" hidden>
  80.                     <input type="text" name="catalog" value="{{ article.id }}" hidden>
  81.                     <button type="submit" class="btn btn-primary ml-4 ml-lg-0 ml-md-0" >
  82.                         Submit
  83.                     </button>
  84.                 </form>
  85.             </div>
  86.         </div>
  87.     </div>
  88. </div>