<{if $get.out_of_stock_signup}>

	<p class="mt-4 alert alert-warning"><strong><i class="fa fa-check"></i> Tak for det - du hører fra os!</strong></p>

<{elseif $for_variants}>

	<{section name="j" loop=$attr}>
		<{if $attr[j]->getIsVariant() && $attr[j]->getDataType() == "valuelist"}>

			<{assign var="values" value=$attr[j]->getValues()}>

			<{section name="k" loop=$values}>
				<{if !$product->getInStock($attr[j]->getAttributeId(), $values[k]->getAttributeValueId())}>

					<div class="mt-4 alert alert-warning">

						<p><{t product=$product->getName()|escape var_name=$attr[j]->getName()|lower|escape var_val=$values[k]->getVal()|lower|escape}>
							Modtag besked når <strong>{product} ({var_name} {var_val})</strong> kommer på lager igen:
						<{/t}></p>

						<form action="" method="post">
							<input type="hidden" name="out_of_stock_signup" value="1"/>
							<input type="hidden" name="product_id" value="<{$product->getProductId()}>"/>
							<input type="hidden" name="attribute_value_id" value="<{$values[k]->getAttributeValueId()}>"/>

							<div class="checkout-content">

								<div class="row">
									<div class="col-8">
										<div class="form-group">
											<input type="email" name="email" placeholder="<{t}>Din e-mail-adresse<{/t}>"/>
										</div>
									</div>

									<div class="col-4">
										<input type="submit" value="<{t}>Tilmeld<{/t}>"/>
									</div>
								</div>

								<div class="row">
									<div class="col-12">
										<input class="clearfix input-checkbox" type="checkbox" id="newsletter" name="newsletter" value="1"/>
										<label class="checkbox" for="newsletter"><{t}>Tilmeld også nyhedsbrev<{/t}></label>
									</div>
								</div>

							</div>

						</form>

					</div>

				<{/if}>

			<{/section}>

		<{/if}>

	<{/section}>

<{else}>

	<div class="mt-4 alert alert-warning">

		<p>Modtag besked når <{$product->getName()|escape}> kommer på lager igen:</p>

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

			<div class="checkout-content">

				<div class="row">
					<div class="col-8">
						<div class="form-group">
							<input type="email" name="email" placeholder="Din e-mail-adresse"/>
						</div>
					</div>

					<div class="col-4">
						<input type="submit" value="Tilmeld"/>
					</div>
				</div>

				<div class="row">
					<div class="col-12">
						<input class="clearfix input-checkbox" type="checkbox" id="newsletter" name="newsletter" value="1"/>
						<label class="checkbox" for="newsletter">Tilmeld også nyhedsbrev</label>
					</div>
				</div>

			</div>

		</form>

	</div>

<{/if}>