<{if $settings.settings.use_wishlist}>

	<form action="" method="post">

		<div class="row">

			<div class="col-md-12">

				<div class="checkout-content">
					<h3><{t}>Produkter<{/t}></h3>

					<table class="cart-table responsive-table">
						<tr>
							<th><{t}>Fjern<{/t}></th>
							<th><{t}>Produkt<{/t}></th>
							<th><{t}>Antal<{/t}></th>
							<th><{t}>Kommentar<{/t}></th>
						</tr>

						<{foreach $wishlist->getWishlistProducts() as $wishlist_product}>
							<{$product = $wishlist_product->getProduct()}>

							<tr>
								<td class="align-top">
									<input type="checkbox" name="wishlist_product[<{$wishlist_product->getWishlistProductId()}>][remove]" value="1">
								</td>
								<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">
									<input type="number" min="0" name="wishlist_product[<{$wishlist_product->getWishlistProductId()}>][amount]" value="<{$wishlist_product->getAmount()}>">
								</td>
								<td class="align-top">
									<textarea style="width:100%;" name="wishlist_product[<{$wishlist_product->getWishlistProductId()}>][comments]"><{$wishlist_product->getComments()|escape}></textarea>
								</td>
							</tr>
						<{/foreach}>

					</table>
				</div>

				<div class="checkout-content">

					<h3><{t}>Rediger ønskeliste<{/t}></h3>

					<label><{t}>Navn på ønskeliste<{/t}>
						<input type="text" name="name" value="<{$wishlist->getName()|escape}>">
					</label>

					<label><{t}>Beskrivelse<{/t}>
						<textarea name="description" class="fullwidth" rows="10"><{$wishlist->getDescription()|escape}></textarea>
					</label>

					<label class="status"><{t}>Status<{/t}></label>
					<select id="status" name="status">
						<option value="active" <{if $wishlist->getStatus() == 'active'}>selected="selected"<{/if}>><{t}>Aktiv<{/t}></option>
						<option value="closed" <{if $wishlist->getStatus() == 'closed'}>selected="selected"<{/if}>><{t}>Lukket<{/t}></option>
					</select>

				</div>

				<input type="submit" name="edit" value="<{t}>Gem<{/t}>">
				<input type="submit" name="close" value="<{t}>Gem og luk<{/t}>">
				<input type="submit" name="remove" value="<{t}>Slet<{/t}>" onclick="return confirm('<{t}>Er du sikker?<{/t}>');">

			</div>
		</div>
	</form>

<{/if}>