<!-- template content_order_editor/shipping_address.tpl -->
<div class="full_box">
	<div class="title_wrapper">
		<div class="title"><h2>Lieferadresse</h2></div>
		<div class="clear"></div>
	</div>
	
	<div class="box_content">
		<div class="box_padder">
			<form target="{$this_url}" method="post" id="edit_shipping_address" class="address_forms">
				
				<input type="hidden" name="action" value="edit_shipping_address" />
				
				<div style="width:739px;float:left;">
					<select class="formatted" id="select_shipping_address" name="select_shipping_address">
						<option value="-2" style="font-weight:bold;color:#990000;">-</option>
						<option value="-1" style="font-weight:bold;color:#990000;">Neue Adresse anlegen</option>
						<option value="0" style="font-weight:bold;color:#990000;">Lieferadresse aus der Bestellung wiederherstellen</option>
						{foreach from=$addresses item=address}
							<option style="width:450px;" value="{$address->id}">{if $address->company}{$address->company}, {/if} {$address->firstname} {$address->surname}, {$address->street} {$address->house_number}, {$address->zip_code} {$address->city}</option>
						{/foreach}
					</select>
				</div>
				<br style="clear:left;" />
				<br />
				
				<div style="width:233px;float:left;">
					<select class="formatted obligatory" name="shipping_honorific" title="">
						<option value="0" {if $order->shipping_honorific == '0'}selected="selected"{/if}>Herr</option>
						<option value="1" {if $order->shipping_honorific == '1'}selected="selected"{/if}>Frau</option>
					</select>
				</div>
				
				<div style="width:233px;margin-left:20px;float:left;">
					<input class="formatted obligatory" name="shipping_firstname" value="{$order->shipping_firstname}" title="Vorname" />
				</div>
				
				<div style="width:233px;margin-left:20px;float:left;">
					<input class="formatted obligatory" name="shipping_surname" value="{$order->shipping_surname}" title="Nachname" />
				</div>
				<br style="clear:left;" />
				<br />
				
				<div style="width:739px;float:left;">
					<input class="formatted" name="shipping_company" value="{$order->shipping_company}" title="Firma" />
				</div>
				<br style="clear:left;" />
				<br />
				
				<div style="width:486px;float:left;">
					<input class="formatted obligatory" name="shipping_street" value="{$order->shipping_street}" title="Straße" />
				</div>
				
				<div style="width:233px;margin-left:20px;float:left;">
					<input class="formatted obligatory" name="shipping_house_number" value="{$order->shipping_house_number}" title="Hausnummer" />
				</div>
				<br style="clear:left;" />
				<br />
				
				<div style="width:233px;float:left;">
					<input class="formatted obligatory" name="shipping_zip_code" value="{$order->shipping_zip_code}" title="PLZ" />
				</div>
				
				<div style="width:233px;margin-left:20px;float:left;">
					<input class="formatted obligatory" name="shipping_city" value="{$order->shipping_city}" title="Ort" />
				</div>
				
				<div style="width:233px;margin-left:20px;float:left;">
					<select class="formatted obligatory" name="shipping_country" title="">
						<option value="">Land</option>
						{foreach from=$countries item=country}
							<option value="{$country->id}" {if $country->id == $order->shipping_country}selected="selected"{/if}>{$country->name}</option>
						{/foreach}
					</select>
				</div>
				<br style="clear:left;" />
				<br />
	
				<div id="shipping_save_message" style="float:left;font-weight:bold;"></div>
				<div style="float:right;">
					<input type="submit" class="button" value="&gt;&gt; Daten speichern" />
				</div>
				<br style="clear:both;" />
			</form>
		</div>
	</div>
</div>