<!-- Modal -->
<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">
<div class="modal-dialog modal-lg modal-dialog-centered" role="document" style="max-width: 680px;">
<div class="modal-content">
<div class="modal-header border-0">
<button type="button" class="close" data-dismiss="modal" aria-label="Close" style="opacity: 1;">
<span aria-hidden="true" class="text-indigo">×</span>
</button>
</div>
<div class="modal-body px-5 px-lg-5 px-md-5">
<div class="row">
{% if addresses is defined and addresses and not lastCatalog %}
<div class="col-lg-6">
<h3 class="font-weight-bold mb-3 mb-lg-3 mb-md-3">Order Print Catalog</h3>
<div class="order-catalog-text">
<small class="font-weight-bold text-silver">
DEFAULT SHIPPING ADDRESS
</small>
</div>
{% for address in addresses %}
<div class="{{ defaultShippingAddress != address.id ? 'd-none' }}" data-address-id="{{ address.id }}">
<p class="mb-0 text-deepGray mt-3 mt-lg-3 mt-md-3">{{ address.fullname }}</p>
<p class="mb-0 text-deepGray">{{ address.street_address }}</p>
<p class="mb-0 text-deepGray">{{ address.zip_code }} {{ address.city }}</p>
<p class="mb-0 text-deepGray">{{ address.stateDisplay }}</p>
<p class="mb-0 text-deepGray">{{ address.countryName }}</p>
<p class="mb-0 text-deepGray">{{ address.phone }}</p>
</div>
{% endfor %}
<div class="select-ghost" style="margin-left: -27px;">
<select name="catalog_shipping_addresses" id="catalog_shipping_addresses-{{article.id}}" style="max-width: 200px;">
{% if addresses is defined %}
<option value="" disabled selected>
SELECT OTHER ADDRESS
</option>
{% for address in addresses %}
<option value="{{ address.id }}">
{{ address.label }}
</option>
{% endfor %}
{% endif %}
<option value="new">{{ 'Add new' | trans }}</option>
</select>
</div>
</div>
{% else %}
<div class="col-lg-6">
<h3 class="font-weight-bold mb-3 mb-lg-3 mb-md-3">Order Print</h3>
<div class="order-catalog-text">
<p>Please complete the form to receive your free product catalog from Stoelting Co.</p>
</div>
</div>
{% endif %}
<div class="col-lg-6 d-flex justify-content-center">
{{ article.feature_image.getThumbnail('catalog').getHtml({class: 'mb-2 mb-lg-2 mb-md-2', alt: article.title}) | raw }}
</div>
</div>
<div class="row">
<div class="col-lg-12">
{% include 'catalog/snippets/form.html.twig' with modalForms[article.id] %}
</div>
</div>
</div>
<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' }}">
<!-- <a class="btn btn-primary btn-primary--ghost" data-dismiss="modal">
Anwser no
</a> -->
<form action="{{ path('catalog_email_send', {'division': getSiteDivision()}) }}" method="POST" class="m-0 d-flex w-100 align-items-end">
<div class="d-flex flex-column mr-auto">
<div class="mb-1 mb-lg-1 mb-md-1 text-deepGray">
Quantity
</div>
<div class="border border-pearl d-flex custom-input-number" style="width: 105px;">
<button type="button" disabled="disabled" class="custom-input-number-button custom-input-number-button--down"><span class="custom-input-number-arrow"></span></button>
<input type="number" class="text-deepGray" id="quantity-{{ article.id }}" name="quantity" required="required" placeholder="stoelting.quantity" min="1" max="100" value="1">
<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>
</div>
</div>
<input type="text" name="address" value="{{ defaultShippingAddress }}" hidden>
<input type="text" name="catalog" value="{{ article.id }}" hidden>
<button type="submit" class="btn btn-primary ml-4 ml-lg-0 ml-md-0" >
Submit
</button>
</form>
</div>
</div>
</div>
</div>