<{if $settings.settings.use_wishlist}>

	<div class="row justify-content-center">
		<div class="col-10 col-md-12">
			<h3 class="headline"><{$wishlist->getName()|escape}></h3><span class="line margin-bottom-35"></span><div class="clearfix"></div>
		</div>
	</div>

	<div class="row justify-content-center">
		<div class="col-10 col-md-12">

			<{if $description = $wishlist->getDescription()}>
				<p><{$description|escape|nl2br}></p>
			<{/if}>

			<table class="cart-table responsive-table">
				<tr>
					<th><{t}>Produkt<{/t}></th>
					<th><{t}>Antal<{/t}></th>
					<th><{t}>Kommentar<{/t}></th>
					<th><{t}>Læg i kurv<{/t}></th>
				</tr>

				<{foreach $wishlist->getWishlistProducts() as $wishlist_product}>
					<{if $product = $wishlist_product->getProduct()}>
						<tr>
							<td class="align-top">
								<{if $image = $product->getImage()}>
									<a href="<{$product->getUrl()|escape}>"><img src="<{$image->getSrc(100, 100, 'fit')}>"></a>
								<{/if}>

								<a href="<{$product->getUrl()|escape}>"><{$product->getName()|escape}></a>

								<{if $variant = $wishlist_product->getVariantValue()}>
									<br><small><{$wishlist_product->getVariantName()|escape}>: <{$variant|escape}></small>
								<{/if}>
							</td>
							<td class="align-top">
								<{$wishlist_product->getAmount()}>
							</td>
							<td class="align-top">
								<{$wishlist_product->getComments()|escape}>
							</td>
							<td class="align-top">
								<form action="" method="post">
									<input type="hidden" name="product_id" value="<{$product->getProductId()}>"/>

									<{if $attribute_id = $wishlist_product->getAttributeId()}>
										<input type="hidden" name="attributes[<{$attribute_id}>]" value="<{$wishlist_product->getAttributeValueId()}>"/>
									<{/if}>

									<section class="linking">
										<div class="qtyminus"></div>
										<input type='text' name="amount" value='1' class="qty" style="box-sizing: content-box !important" />
										<div class="qtyplus"></div>
										<input class="button adc color productEntityAddToCart" type="submit" value="<{t}>Læg i kurv<{/t}>">
										<div class="clearfix"></div>
									</section>
								</form>
							</td>
						</tr>
					<{/if}>
				<{/foreach}>
			</table>

			<div class="clearfix"></div>
		</div>
	</div>

<{/if}>