{% extends 'product.html.twig' %}
{% block content %}
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
{% if not document is defined or not document %}
{% set document = pimcore_document(1) %}
{% endif %}
{# {% set product = product.parent %} #}
<div class="breadcrumb-block">
<div class="container">
<!-- breadcrumb of the page -->
<ul class="breadcrumb">
<li>
<a href="/{{ locale }}/" class="home">
{{ 'espirits.header.home'|trans }}
</a>
</li>
<li>
<a href="{{ pimcore_url({prefix: locale},'product-landing') }}">
{{ 'espirits.header.our-products'|trans }}
</a>
</li>
{% set rootCategory = '' %}
{% if product.getCategories() %}
{% set category = product.getCategories()[0] %}
{% set parentcategory = category.getParent() %}
{% if parentcategory and parentcategory.getType() == "object" and parentcategory.getClassname() == "CategoryAlcoholType" %}
{% set parenturl = parentcategory.getDetailUrl({"rootCategory" : rootCategory, "document" : document}) %}
<li>
<a href="{{ parenturl }}">
{{ parentcategory.getName() }}
</a>
</li>
{% endif %}
{% endif %}
<li class="active">
<a href="{{ category ? category.getDetailUrl({"rootCategory" : rootCategory, "document" : document}) : "" }}">
{{ category ? category.getName() : "" }}
</a>
</li>
</ul>
</div>
</div>
<div class="container">
<div class="heading-holder">
<!-- main heading of the page -->
<h1>{{ product.getOSName() }}</h1>
<h2 class="sub-heading">{{ product.getContent() }}</h2>
</div>
<div class="detail-block">
<div class="row">
<div class="col-sm-3">
<div class="widget-block">
{% set brand = product.getBrand() %}
{% if brand %}
<div class="widget" style="margin-bottom: 10px;">
<div class="heading">
<h2>Image type</h2>
</div>
<ul class="link-list">
{% set brandimage = brand[0].getObject().getBrandMarkImage() %}
<!--<li><a href="#" class="pencil">Brand Details</a></li>-->
</ul>
</div>
<div class="widget">
<div class="logo-link-holder">
<a class="download-btn button" href="{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
</div>
<div class="logo-holder">
<div class="logo-wrap">
<a href="{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}">
{% if product %}
<img src="{{ product.DocumentImage.getThumbnail({ width: 221 }) }}">
{% else %}
<h2>{{ product.getName() }}</h2>
{% endif %}
</a>
</div>
</div>
<div class="download-logo" style="margin-top: 10px;">
<a class="download-btn button" href="{{ product.DocumentImage.getFullPath()|replace({'/var/www/html/web' : ''}) }}" download>Download Image</a>
</div>
</div>
{% endif %}
</div>
</div>
<div class="col-sm-6">
<div class="product-info">
<div class="heading-holder">
<h2 class="sub-heading">Description</h2>
</div>
{{product.description|raw}}
</div>
</div>
<div class="col-sm-3">
<div class="widget-block">
{% set brand = product.getBrand() %}
{% if brand %}
<div class="widget" style="margin-bottom: 10px;">
<div class="heading">
<h2>Image type</h2>
</div>
<ul class="link-list">
{% set brandimage = brand[0].getObject().getBrandMarkImage() %}
<!--<li><a href="#" class="pencil">Brand Details</a></li>-->
</ul>
</div>
<div class="widget">
<div class="logo-link-holder">
<a class="download-btn button" href="{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}">{{ 'espirits.detail.viewall'|trans }} {{ brand[0].getObject().getBrandName() }} {{ 'espirits.detail.products'|trans }}</a>
</div>
<div class="logo-holder">
<div class="logo-wrap">
<a href="{{ '/' ~ locale ~ '/product/list?Brand=' ~ brand[0].getObject().getId() }}">
{% if brandimage %}
<img src="{{ brandimage.getThumbnail({ width: 151 }) }}">
{% else %}
<h2>{{ brand[0].getObject().getBrandName() }}</h2>
{% endif %}
</a>
</div>
</div>
<div class="download-logo" style="margin-top: 10px;">
<a class="download-btn button" href="{{ brandimage.getFullPath()|replace({'/var/www/html/web' : ''}) }}" download>Download Logo</a>
</div>
</div>
{% endif %}
</div>
</div>
</div>
</div>
<div class="tab-holder">
<ul class="tabset">
<li class="first"><a href="#tab1" ><span>Photos</span></a></li>
{% if product.getVideoList() and product.getVideoList()|length > 0 %}
<li class="seventh"><a href="#tab2"><span>Video</span></a></li>
{% endif %}
{% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
<li class="seventh"><a href="#tab3" class="active"><span>Documents</span></a></li>
{% endif %}
</ul>
<div class="tab-content">
<div class="accordion">
{% if product.getImages() is not empty %}
<div class="accordion-holder active">
<a href="#" class="accordion-opener">{{ 'espirits.detail.product-photos'|trans }}</a>
<div id="here" class="accordion-slide">
<div id="tab1" class="tab-data">
<div class="content-wrap">
{% for image in product.getImages() %}
<div class="col-sm-4">
<div class="product-post hover-js">
<div class="img-holder">
{% if image.getImage() %}
{{ image.getImage().getThumbnail('alcoholtype').getHtml({ 'width': 300, 'height': 222 })|raw }}
{% endif %}
</div>
<a class="download-btn button video-download-btn" data-basename="{{ basename(image.getImage().getFilename()) }}" data-brand="{{ brand[0].getObject().getBrandName() }}" download href="{{ image.getImage().getPath() ~ image.getImage().getFilename() }}">Download Image</a>
</div>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% if product.getVideoList() and product.getVideoList()|length > 0 %}
<div class="accordion-holder">
<a href="#" class="accordion-opener">{{ 'espirits.detail.video'|trans }}</a>
<div class="accordion-slide">
<div id="tab2" class="tab-data">
<div class="content-wrap">
{% for video in product.getVideoList() %}
{% set src = video.getPath() ~ video.getFilename() %}
<div class="video_holder">
<video controls>
<source src="{{ src }}" type="video/mp4">
</video>
<a class="download-btn button video-download-btn" data-basename="{{ basename(video.getFilename()) }}" data-brand="{{ brand[0].getObject().getBrandName() }}" download href="{{ video.getPath() ~ video.getFilename() }}">Download Video</a>
</div>
{% endfor %}
</div>
</div>
</div>
</div>
{% endif %}
{% if product.getDocumentList() and product.getDocumentList()|length > 0 %}
<div class="accordion-holder">
<a href="#" class="accordion-opener">{{ 'espirits.detail.video'|trans }}</a>
<div class="accordion-slide">
<div id="tab3" class="tab-data">
<div class="content-wrap">
<table class="table table-striped">
<thead>
<tr>
<th>Document Name</th>
<th>Document Size</th>
<th>Document Type</th>
<th>Download</th>
</tr>
</thead>
<tbody>
{% for document in product.getDocumentList() %}
<tr>
<td>{{document.filename}}</td>
<td>{{format_bytes(document.getFileSize())}}</td>
<td><i class="{{ document_icon(document.mimeType) }}" style="font-size:24px;"></i></td> <!-- Example using Font Awesome icons -->
<td><a class="download-btn button video-download-btn" data-basename="{{ basename(document.getFilename()) }}" data-brand="{{ brand[0].getObject().getBrandName() }}" download href="{{ document.getPath() ~ document.getFilename() }}">Download</a></td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endif %}
{# {% if sizeVariants is not empty %}
<div class="accordion-holder active">
<a href="#" class="accordion-opener">{{ 'espirits.detail.product-photos'|trans }}</a>
<div id="here" class="accordion-slide">
<div id="tab10" class="tab-data">
<div class="content-wrap">
<div class="row">
<div class="col-sm-6 col-md-5">
<div class="wrap">
<h3>{{ 'espirits.detail.bottle-sizes'|trans }}</h3>
<div id="bottle-sizes">
<ul class="type-list">
{% set firstimage = null %}
{% if sizeVariants is not empty %}
{% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
{% if variant.getBottlePhoto() is not empty %}
{% if not firstimage %}
{% set firstimage = variant.getBottlePhoto() %}
<li id="{{ variant.getBottleSize()|replace({' ': ''}) }}" class="active">
<a href="#"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% else %}
<li id="{{ variant.getBottleSize()|replace({' ': ''}) }}">
<a href="#"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% endif %}
{% else %}
<li id="{{ variant.getBottleSize()|replace({' ': ''}) }}">
<a class="disabled"><span>{{ variant.getBottleSize() }}</span></a>
</li>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
</ul>
</div>
</div>
</div>
<div class="col-sm-6 col-md-7">
{% if sizeVariants is not empty %}
<h3>Bottle Details</h3>
<div id="image-block">
{% set i = 1 %}
{% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
<div id="{{ variant.getBottleSize()|replace({' ': ''}) }}" class="{{ (i == 1) ? 'active' : '' }}">
<div class="extra-info">
<dl>
<dt>GTIN</dt>
<dd>{{ variant.getGTIN()|default('N/A') }}</dd>
</dl>
{% if variant.getBottleMaterial() is not empty %}
<dl>
<dt>Material</dt>
<dd>{{ (variant.getBottleMaterial() is not empty) ? variant.getBottleMaterial() : 'N/A' }}</dd>
</dl>
{% endif %}
{% set htArray = variant.getBottleHeight()|split(' ') %}
{% set wdArray = variant.getBottleWidth()|split(' ') %}
{% set dpArray = variant.getBottleDepth()|split(' ') %}
{% if htArray is not empty and wdArray is not empty and dpArray is not empty %}
{% if htArray[0] and wdArray[0] and dpArray[0] %}
<dl>
<dt>Dimension</dt>
<dd>{{ htArray[0] ~ ' x ' ~ wdArray[0] ~ ' x ' ~ dpArray[0] }} IN</dd>
</dl>
{% endif %}
{% endif %}
{% if variant.getBottleWeight() is not empty %}
<dl>
<dt>Weight</dt>
<dd>{{ (variant.getBottleWeight() is not empty) ? variant.getBottleWeight() : 'N/A' }}</dd>
</dl>
{% endif %}
</div>
</div>
{% endif %}
{% set i = i+1 %}
{% endfor %}
</div>
{% endif %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %} #}
</div>
</div>
</div>
</div>
{# {% for variant in sizeVariants %}
{% set countries = variant.getCountryAvailabilityList() %}
{% set continue = 0 %}
{% set break = false %}
{% for lcountry in countries %}
{% if lcountry.getObject().getId() == country.getId() and lcountry.geteSpiritsEnable() == 1 and not break %}
{% set continue = 1 %}
{% set break = true %}
{% endif %}
{% endfor %}
{% if continue is not empty %}
<!-- Bottle images Modal -->
<div id="downloadModal_{{ variant.getBottleSize()|replace({' ': ''}) }}" class="downloadModal modal fade" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Download Image Assets</h4>
</div>
<div class="modal-body">
<form id="download_{{ variant.getBottleSize()|replace({' ': ''}) }}" class="downloadForm" method="post" action="/{{ locale }}/download">
<h3>{{ product.getOSName() ~ '-' ~ variant.getBottleSize() }}</h3>
<label class="control-label">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name="images[]" multiple="multiple" class="image-picker show-html image-download jcf-ignore" required>
<option data-img-src="{{ variant.getBottlePhoto().getThumbnail('eSpirits_Detail_Thumb') }}" value="{{ variant.getBottlePhoto().getId() }}">{{ variant.getBottlePhoto().getKey() }}</option>
{% set images = variant.getAdditionalImages() %}
{% for item in images %}
{% if item['AdditionalPhoto'] is not empty %}
{% set asset = pimcore_asset_by_path(item['AdditionalPhoto'].getData()) %}
<option data-img-src="{{ asset.getThumbnail("eSpirits_Detail_Thumb") }}" value="{{ asset.getId() }}">{{ asset.getKey() }}</option>
{% endif %}
{% endfor %}
</select>
<div class="form-group">
<label class="control-label" for="photographyfilefileformat_{{ variant.getBottleSize()|replace({' ': ''}) }}">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type="radio" id="photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}" name="photographyfileformat" placeholder="PNG" value="PNG" />
<label for="photographyfileformatPNG_{{ variant.getBottleSize()|replace({' ': ''}) }}" style="margin-right: 8px;"> PNG </label>
</div>
<div>
<input type="radio" id="photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}" name="photographyfileformat" placeholder="JPG" value="JPG" />
<label for="photographyfileformatJPG_{{ variant.getBottleSize()|replace({' ': ''}) }}" style="margin-right: 8px;"> JPG </label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="datafilesize">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name="photographyfiledimension" data-jcf='{"wrapNative": false, "wrapNativeOnMobile": false}'>
<option value="eSpirits_1">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value="eSpirits_2">750 x 1500 (px)</option>
<option value="eSpirits_3">1000 x 1000 (px)</option>
<option value="eSpirits_4">1500 x 1500 (px)</option>
<option value="eSpirits_5">2000 x 2000 (px)</option>
</select>
</div>
</div>
</div>
<input type="hidden" name="order_type" value="direct">
<input type="hidden" name="product_id" value="{{ variant.getId() }}">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'espirits.detail.cancel'|trans }}</button>
<input type="submit" class="btn btn-default" value="{{ 'espirits.detail.downloadimages'|trans }}">
</form>
</div>
</div>
</div>
</div>
{% endif %}
{% endfor %} #}
{# <div id="downloadModal_Lifestyle" class="downloadModal modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">{{ '×'|raw }}</button>
<h4 class="modal-title">Download Lifestyle Assets</h4>
</div>
<div class="modal-body">
<form id="download_Lifestyle" class="downloadForm" method="post" action="/{{ locale }}/download">
<h3>{{ product.getOSName() }}</h3>
<label class="control-label">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name="images[]" multiple="multiple" class="image-picker show-html image-download jcf-ignore" required>
{% if product.getLifestylePhotoList() is not empty %}
{% set x =0 %}
{% for item in product.getLifestylePhotoList().getItems() %}
{% if item.getPhotoLifestyle() is not empty %}
<option data-img-src="{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}" value="{{ item.getPhotoLifestyle().getId() }}">{{ item.getPhotoLifestyle().getKey() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class="form-group">
<label class="control-label" for="datafileformat_lifestyle">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type="radio" id="photographyfileformatPNG_Lifestyle" name="photographyfileformat" placeholder="PNG" value="PNG" />
<label for="photographyfileformatPNG_Lifestyle" style="margin-right: 8px;"> PNG </label>
</div>
<div>
<input type="radio" id="photographyfileformatJPG_Lifestyle" name="photographyfileformat" placeholder="JPG" value="JPG" />
<label for="photographyfileformatJPG_Lifestyle" style="margin-right: 8px;"> JPG </label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="datafilesize">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name="photographyfiledimension" data-jcf='{"wrapNative": false, "wrapNativeOnMobile": false}'>
<option value="eSpirits_1">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value="eSpirits_2">750 x 1500 (px)</option>
<option value="eSpirits_3">1000 x 1000 (px)</option>
<option value="eSpirits_4">1500 x 1500 (px)</option>
<option value="eSpirits_5">2000 x 2000 (px)</option>
</select>
</div>
</div>
</div>
<input type="hidden" name="order_type" value="direct">
<input type="hidden" name="product_id" value="{{product.id}}">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'espirits.detail.cancel'|trans }}</button>
<input type="submit" class="btn btn-default" value="{{ 'espirits.detail.downloadimages'|trans }}">
</form>
</div>
</div>
</div>
</div>
<div id="downloadModal_Infographics" class="downloadModal modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">{{ '×'|raw }}</button>
<h4 class="modal-title">Download Infographics</h4>
</div>
<div class="modal-body">
<form id="download_Infographics" class="downloadForm" method="post" action="/{{ locale }}/download">
<h3>{{ product.getOSName() }}</h3>
<label class="control-label">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name="images[]" multiple="multiple" class="image-picker show-html image-download jcf-ignore" required>
{% if product.getInfographicsPhotoList() is not empty %}
{% set x =0 %}
{% for item in product.getInfographicsPhotoList().getItems() %}
{% if item.getPhotoLifestyle() is not empty %}
<option data-img-src="{{ item.getPhotoLifestyle().getThumbnail('eSpirits_Detail_Thumb') }}" value="{{ item.getPhotoLifestyle().getId() }}">{{ item.getPhotoLifestyle().getKey() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class="form-group">
<label class="control-label" for="datafileformat_infographics">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type="radio" id="photographyfileformatPNG_Infographics" name="photographyfileformat" placeholder="PNG" value="PNG" />
<label for="photographyfileformatPNG_Infographics" style="margin-right: 8px;"> PNG </label>
</div>
<div>
<input type="radio" id="photographyfileformatJPG_Infographics" name="photographyfileformat" placeholder="JPG" value="JPG" />
<label for="photographyfileformatJPG_Infographics" style="margin-right: 8px;"> JPG </label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="datafilesize">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name="photographyfiledimension" data-jcf='{"wrapNative": false, "wrapNativeOnMobile": false}'>
<option value="eSpirits_1">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value="eSpirits_2">750 x 1500 (px)</option>
<option value="eSpirits_3">1000 x 1000 (px)</option>
<option value="eSpirits_4">1500 x 1500 (px)</option>
<option value="eSpirits_5">2000 x 2000 (px)</option>
</select>
</div>
</div>
</div>
<input type="hidden" name="order_type" value="direct">
<input type="hidden" name="product_id" value="{{product.id}}">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'espirits.detail.cancel'|trans }}</button>
<input type="submit" class="btn btn-default" value="{{ 'espirits.detail.downloadimages'|trans }}">
</form>
</div>
</div>
</div>
</div>
<div id="downloadModal_Recipes" class="downloadModal modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">{{ '×'|raw }}</button>
<h4 class="modal-title">Download Recipes</h4>
</div>
<div class="modal-body">
<form id="download_Recipes" class="downloadForm" method="post" action="/{{ locale }}/download">
<h3>{{ product.getOSName() }}</h3>
<label class="control-label">{{ 'espirits.detail.selectimages'|trans }}</label>
<select name="images[]" multiple="multiple" class="image-picker show-html image-download jcf-ignore" required>
{% if recipes %}
{% set x = 0 %}
{% for recipe in recipes %}
{% if recipe.getObject().getRecipePhoto() is not empty %}
<option data-img-src="{{ recipe.getObject().getRecipePhoto().getThumbnail('eSpirits_Detail_Thumb') }}" value="{{ recipe.getObject().getId() }}">{{ recipe.getObject().getRecipeName() }}</option>
{% endif %}
{% set x = x+1 %}
{% endfor %}
{% endif %}
</select>
<div class="form-group">
<label class="control-label" for="datafileformat_Recipes">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type="radio" id="photographyfileformatPNG_Recipes" name="photographyfileformat" placeholder="PNG" value="PNG" />
<label for="photographyfileformatPNG_Recipes" style="margin-right: 8px;"> PNG </label>
</div>
<div>
<input type="radio" id="photographyfileformatJPG_Recipes" name="photographyfileformat" placeholder="JPG" value="JPG" />
<label for="photographyfileformatJPG_Recipes" style="margin-right: 8px;"> JPG </label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="datafilesize">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name="photographyfiledimension" data-jcf='{"wrapNative": false, "wrapNativeOnMobile": false}'>
<option value="eSpirits_1">{{ 'espirits.detail.originallargest'|trans }}</option>
<option value="eSpirits_2">750 x 1500 (px)</option>
<option value="eSpirits_3">1000 x 1000 (px)</option>
<option value="eSpirits_4">1500 x 1500 (px)</option>
<option value="eSpirits_5">2000 x 2000 (px)</option>
</select>
</div>
</div>
</div>
<input type="hidden" name="order_type" value="recipes">
<input type="hidden" name="product_id" value="{{ product.getId() }}">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'espirits.detail.cancel'|trans }}</button>
<input type="submit" class="btn btn-default" value="{{ 'espirits.detail.downloadimages'|trans }}">
</form>
</div>
</div>
</div>
</div>
<div id="downloadModal_digitalMarketing" class="downloadModal modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">{{ '×'|raw }}</button>
<h4 class="modal-title">Download Programming Assets Assets</h4>
</div>
<div class="modal-body">
<form id="download_digitalMarketing" class="downloadForm" method="post" action="/{{ locale }}/download">
<h3>{{ product.getName() }}</h3>
<label class="control-label">Select Images</label>
<select name="images[]" multiple="multiple" class="image-picker show-html image-download jcf-ignore" required>
{% for x in 1..5 %}
{% if attribute(product, 'getAssets'~x) is not empty %}
{% for item in attribute(product, 'getAssets'~x) %}
{% if attribute(item, 'Asset'~x) %}
{% set asset = attribute(item, 'Asset'~x) %}
{% if asset %}
{% set asset = asset.getData() %}
<option data-img-src="{{ asset.getThumbnail('eSpirits_Detail_Thumb') }}" value="{{ asset.getId() }}">{{ asset.getFilename() }}</option>
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}
</select>
<div class="form-group">
<label class="control-label" for="photographyfilefileformat_digitalMarketing">{{ 'checkout.photographyfileformat'|trans }}</label>
<div>
<input checked type="radio" id="photographyfileformatOriginal_digitalMarketing" name="photographyfileformat" placeholder="ORIGINAL" value="ORIGINAL" />
<label for="photographyfileformatOriginal_digitalMarketing" style="margin-right: 8px;"> Original </label>
</div>
<div>
<input type="radio" id="photographyfileformatPNG_digitalMarketing" name="photographyfileformat" placeholder="PNG" value="PNG" />
<label for="photographyfileformatPNG_digitalMarketing" style="margin-right: 8px;"> PNG </label>
</div>
<div>
<input type="radio" id="photographyfileformatJPG_digitalMarketing" name="photographyfileformat" placeholder="JPG" value="JPG" />
<label for="photographyfileformatJPG_digitalMarketing" style="margin-right: 8px;"> JPG </label>
</div>
</div>
<div class="form-group">
<label class="control-label" for="datafilesize">{{ 'checkout.photographyfilesize'|trans }}</label>
<div>
<select name="photographyfiledimension" data-jcf='{"wrapNative": false, "wrapNativeOnMobile": false}'>
<option value="eSpirits_1">Original - Largest Image Size</option>
<option value="eSpirits_2">750 x 1500 (px)</option>
<option value="eSpirits_3">1000 x 1000 (px)</option>
<option value="eSpirits_4">1500 x 1500 (px)</option>
<option value="eSpirits_5">2000 x 2000 (px)</option>
</select>
</div>
</div>
</div>
<input type="hidden" name="order_type" value="direct">
<input type="hidden" name="product_id" value="{{ product.getId() }}">
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
<input type="submit" class="btn btn-default" value="Download Images">
</form>
</div>
</div>
</div>
</div>
<div id="downloadLoading" class="downloadLoading modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title">{{ 'espirits.detail.generatingdownload'|trans }}</h4>
</div>
<div class="modal-body">
<div class="loading"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">{{ 'espirits.detail.cancel'|trans }}</button>
</div>
</div>
</div>
</div> #}
<iframe id="my_iframe" style="display:none;"></iframe>
{% endblock %}