<{if $product && $customer && $settings.settings.use_wishlist}>

	<{if $wishlists = $customer->getWishlists()}>

		<form action="" method="post">
			<input type="hidden" name="product_id" value="<{$product->getProductId()}>"/>

			<section class="variables">
				<label><{t}>Vælg ønskeliste:<{/t}></label>
				<select name="wishlist_id">
					<{foreach $wishlists as $wishlist}>
						<option value="<{$wishlist->getWishlistId()}>"><{$wishlist->getName()|escape}></option>
					<{/foreach}>
				</select>
			</section>

			<{if $variant = $product->getVariant()}>
				<section class="variables">
					<label><{t}>Vælg variant:<{/t}></label>

					<select name="attribute_value_id">
						<{foreach $variant->getValues() as $value}>
							<option value="<{$value->getAttributeValueId()}>"><{$variant->getName()|escape}>: <{$value->getVal()|escape}></option>
						<{/foreach}>
					</select>
				</section>
			<{/if}>

			<section class="linking">
				<input class="button color" type="submit" value="<{t}>Tilføj til ønskeliste<{/t}>">
			</section>
		</form>

	<{/if}>

<{/if}>