<{if $webshop->hasInvoiceAddressSelection()}>

	<{capture name="terms_form"}>
		<div id="small-dialog" class="zoom-anim-dialog mfp-hide">
			<h3 class="headline">Betal med MobilePay Checkout</h3><span class="line margin-bottom-25"></span><div class="clearfix"></div>
			<form action="/basket" method="post" class="mt-4">

				<div class="my-3 checkout-content">
					<div class="terms">
						<{if $settings.texts.terms}>
							<{$settings.texts.terms}>
						<{else}>
							Denne shop har ikke nogen betingelser.
							Enten opret nogen, eller indsæt en tom tekst under dine <a href="<{$url|escape}>/theme-setup/settings#tabs-5" target="_blank">designindstillinger</a>.
						<{/if}>
					</div>
				</div>

				<div class="form-group">
					<label for="accept">
						<input id="accept" type="checkbox" name="accept" value="1" required/>
						Jeg accepterer ovenstående handelsbetingelserne.
					</label>
				</div>

				<div class="form-group">
					<input class="btn btn-primary button color proceed" type="submit" name="invoice_address_selection" value="Betal med MobilePay Checkout"/>
				</div>
			</form>
		</div>
	<{/capture}>

	<{if $show}>

		<{if $show == "button"}>

			<a href="#small-dialog" style="padding:10px;" class="popup-with-zoom-anim button margin-left-0 btn btn-primary button color proceed">Betal med MobilePay Checkout</a>

		<{elseif $show == "form"}>

			<{$smarty.capture.terms_form}>

		<{/if}>

	<{else}>
		<div class="my-4"><a href="#small-dialog" class="popup-with-zoom-anim button margin-left-0 btn btn-primary button color proceed">Betal med MobilePay Checkout</a></div>

		<{$smarty.capture.terms_form}>
	<{/if}>

<{/if}>