<{if $created}>

	<h1>Profil oprettet</h1>

	<p><a href="<{$webshop->getUrl()|escape}>/">Til forsiden</a></p>

<{else}>

	<{if $exists}>
		<h1>Profil eksisterer</h1>
		<p>Der findes allerede en profil med denne email adresse. <a href="<{$webshop->getUrl()|escape}>/user-sign-in">Log ind</a> eller <a href="<{$webshop->getUrl()|escape}>/user-reset-password">glemt adgangskode</a>.</p>
	<{/if}>

	<{assign var="countries" value=$webshop->getCountries()}>

	<div class="row">
		<div class="col-10 col-md-5 centered checkout-content">

			<h3 class="headline">Opret konto</h3>
			<span class="line" style="margin-bottom:20px;"></span>
			<div class="clearfix"></div>

			<{if $webshop->hasLoyaltyProgram() && $webshop->getLoyaltyProgramSignupPoints()}>
				<p>Du optjener <{$webshop->getLoyaltyProgramSignupPoints()|number_format:0:",":"."}> point når du opretter din profil.</p>
			<{/if}>

			<form method="post" class="register">

				<p class="form-row form-row-margin0">
					<label for="name">Navn: <span class="required">*</span></label>
					<input type="text" class="input-text" name="name" id="name" value="" required/>
				</p>

				<p class="form-row form-row-margin0">
					<label for="reg_email">Email Address: <span class="required">*</span></label>
					<input type="email" class="input-text" name="email" id="reg_email" value="" />
				</p>

				<p class="form-row form-row-margin0">
					<label for="phone">Telefonnummer:</label>
					<input type="text" class="input-text" name="phone" id="phone" value="" />
				</p>

				<p class="form-row form-row-margin0">
					<label for="address">Adresse:</label>
					<input type="text" class="input-text" name="address" id="address" value="" />
				</p>

				<p class="form-row form-row-margin0">
					<label for="zipcode">Postnummer:</label>
					<input type="text" class="input-text" name="zipcode" id="zipcode" value="" />
				</p>

				<p class="form-row form-row-margin0">
					<label for="city"style="width:100px;">By:</label>
					<input type="text" class="input-text" name="city" id="city" value="" />
				</p>

				<{if $countries}>
					<p class="form-row form-row-wide form-row-margin0">
						<select name="country_id">
							<{section name="i" loop=$countries}>
								<option value="<{$countries[i]->getCountryId()}>"><{$countries[i]->getName()|escape}></option>
							<{/section}>
						</select>
					</p>
				<{/if}>

				<{if $fields = $webshop->getCustomerFields()}>
					<h3>Felter</h3>

					<{section name="i" loop=$fields}>
						<{if $fields[i]->getType() == "list"}>

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

							<label><{$fields[i]->getName()|escape}>
								<select name="field[<{$fields[i]->getCustomerFieldId()}>]">
									<{section name="j" loop=$values}>
										<option value="<{$values[j]|escape}>"><{$values[j]|escape}></option>
									<{/section}>
								</select>
							</label>

						<{elseif $fields[i]->getType() == "string"}>
							<label><{$fields[i]->getName()|escape}>
								<input type="text" name="field[<{$fields[i]->getCustomerFieldId()}>]" value="" placeholder="<{$fields[i]->getName()|escape}>">
							</label>
						<{/if}>
					<{/section}>
				<{/if}>

				<p class="form-row form-row-margin0">
					<input type="submit" class="button" name="register" value="Opret konto" />
				</p>
			</form>

		</div>
	</div>

<{/if}>