<!-- content_customer_center/base_data.tpl -->
<div class="full_box">
	<div class="title_wrapper">
		<div class="title"><h2>Pers&ouml;nliche Daten | Login | Newsletter</h2></div>
		
		<a class="actionButton" href="#edit_base_data_form">Daten &auml;ndern</a>
	</div>

	<div class="box_content base_data_box">
		<div class="box_padder clearfix">
			<form target="{$this_url}" method="post" id="edit_base_data_form" class="formated_form">
				
				<input type="hidden" name="action" value="edit_base_data" />
				
				<div class="line first">
					<h4>Pers&ouml;nliche Daten</h4>
				</div>
				
				<!-- block: company -->
				<div class="line">
					<div class="full">
						<label for="company">Firma</label><br />
						<input type="text" class="full" name="company" {if $customer->company}value="{$customer->company}"{/if} />
					</div>
				</div>
				<!-- end block: company -->
			
				<!-- block: honorific -->
				<div class="line">
					<div class="short">
						<label for="honorific">Anrede</label><br />
						<select name="honorific" class="short">
							<option value="0" {if $customer->honorific == '0'}selected="selected"{/if}>Herr</option>
							<option value="1" {if $customer->honorific == '1'}selected="selected"{/if}>Frau</option>
							<option value="3" {if $customer->honorific == '2'}selected="selected"{/if}>Firma</option>
						</select>
					</div>
				</div>
				<!-- end block: honorific -->
					
				<!-- block: name -->
				<div class="line">
					<div class="half">
						<label for="firstname">Vorname</label><br />
						<input type="text" class="half" name="firstname" {if $customer->firstname}value="{$customer->firstname}"{/if} />
					</div>
					
					<div class="last half">
						<label for="surname">Nachname</label><br />
						<input type="text" class="half" name="surname" {if $customer->surname}value="{$customer->surname}"{/if} />
					</div>
				</div>
				<!-- end block: name -->
				
				<div class="line">
					<div class="short">
						<label for="burth_date">Geburtsdatum</label><br />
						<input type="text" class="short" name="burth_date" {if $customer->burth_date}value="{$customer->burth_date}"{/if} />
					</div>
				</div>
				
				<div class="line">
					<h4>Kontaktdaten</h4>
				</div>
				
				<div class="line">
					<div class="half">
						<label for="phone">Telefon</label><br />
						<input type="text" class="half" name="phone" {if $customer->phone}value="{$customer->phone}"{/if} /><br />
					</div>
					
					<div class="last half">
						<label for="email">E-Mail</label><br />
						<input type="text" class="half" name="email" {if $customer->email}value="{$customer->email}"{/if} /><br />
					</div>
				</div>
				
				<div class="line">
					<div class="half">
						<label for="fax">Fax</label><br />
						<input type="text" class="half" name="fax" {if $customer->fax}value="{$customer->fax}"{/if} /><br />
					</div>
					
					<div class="last half">
						<label for="website">Webseite</label><br />
						<input type="text" class="half" name="website" {if $customer->website}value="{$customer->website}"{/if} /><br />
					</div>
				</div>
				
				<div class="line">
					<div class="half">
						<label for="mobile">Handy</label><br />
						<input type="text" class="half" name="mobile" {if $customer->mobile}value="{$customer->mobile}"{/if} /><br />
					</div>
				</div>
				
				<div class="line">
					<h4>Passwort &auml;ndern</h4>
				</div>
				
				<div class="line">
					<div class="half">
						<label for="">Passwort</label><br />
						<input type="password" class="half" name="pass1" /><br />
					</div>
					
					<div class="last half">
						<label for="">Passwort Best&auml;tigen</label><br />
						<input type="password" class="half" name="pass2" /><br />
					</div>
				</div>
				
				<div class="line">
					<h4>Newsletter</h4>
				</div>
				<div class="line">
					<div class="half">
						<label for="">Newsletter empfangen</label><br />
						<select name="newsletter_sub" class="half">
							<option value="0">Nein</option>
							<option value="1" {if $customer->newsletter_sub == 1}selected{/if}>Ja</option>
						</select><br>
					</div>
				</div>
				
				<!-- block: submit -->
				<div class="line">
					<span class="target"></span>
					<input type="submit" value="Speichern" class="button" style="width:125px;margin-left:350px;" />
				</div>
				<!-- end block: submit -->
			</form>
			
						
			<div class="address clearfix">
				<div class="vcard">
					<span class="default">Pers&ouml;nliche Daten</span><br>

					{if $customer->company != ""}
						<strong>{$customer->company}</strong><br>
						{if $customer->honorific == 0}
							Herr
						{elseif $customer->honorific == 1}
							Frau
						{elseif $customer->honorific == 2}
							Firma
						{/if}
						{$customer->firstname} {$customer->surname}<br>
					{else}
						{if $customer->honorific == 0}
							Herr
						{elseif $customer->honorific == 1}
							Frau
						{elseif $customer->honorific == 2}
							Firma
						{/if}<br>
						{$customer->firstname} {$customer->surname}<br>
					{/if}

					<br>
					{if $customer->burth_date != '0000-00-00'}
						Geburtsdatum: {$customer->burth_date}<br>
					{/if}
					{if $customer->freetextfield3}
						Ihre Bezahlart: {$customer->freetextfield3}
					{/if}
				</div>
			</div>
						
			<div class="address clearfix">
				<div class="vcard">
					<span class="default">Kontakt &amp; Einstellungen</span><br>

					{if $customer->phone}
						<div class="clearfix">
							<span>Telefon:</span> <span>{$customer->phone}</span>
						</div>
					{/if}
					{if $customer->fax}
						<div class="clearfix">
							<span>Telefax:</span> <span>{$customer->fax}</span>
						</div>
					{/if}
					{if $customer->mobile}
						<div class="clearfix">
							<span>Handy:</span> <span>{$customer->mobile}</span>
						</div>
					{/if}
					{if $customer->email}
						<div class="clearfix">
							<span>E-Mail:</span> <span>{$customer->email}</span>
						</div>
					{/if}
					{if $customer->website}
						<div class="clearfix">
							<span>Website:</span> <span>{$customer->website}</span>
						</div>
					{/if}
					<br>
					<div class="clearfix">
						<span>Passwort:</span> <span>************</span>
					</div>
					<div class="clearfix">
						<span>Newsletter:</span> <span>{if $customer->newsletter_sub == 1}Ja{else}Nein{/if}</span>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
