<div class="addresses form">
<?php echo $form->create('Address', array('action' => 'add/customerid:'.$customer['Customer']['id']));?>
	<fieldset>
 		<legend><?php __('Add Address to Customer: '.$customer['Customer']['name']);?></legend>
	<?php
		
		echo $form->input('address', array('label' => 'Address', 'title' => 'The Address to be added'));
		echo $form->input('city', array('label' => 'City', 'title' => 'Name of the City/Suburb for this Address'));
		echo $form->input('state_id');
		echo $form->input('postcode', array('label' => 'Post Code', 'title' => 'The Post Code for this Address. Eg. 2015 for Alexandria'));
		echo $form->input('country_id');
		echo $form->input('type', array('label' => 'Address Type (Billing,Shipping or Both)', 'options' => array('Billing','Shipping', 'Both Shipping and Billing', 'Other')));
		echo $form->input('customer_id', array('type' => 'hidden', 'value'=>$customer['Customer']['id']));
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Addresses', true), array('action'=>'index'));?></li>
		<li><?php echo $html->link(__('List Customers', true), array('controller'=> 'customers', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Customer', true), array('controller'=> 'customers', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('List States', true), array('controller'=> 'states', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New State', true), array('controller'=> 'states', 'action'=>'add')); ?> </li>
		<li><?php echo $html->link(__('List Countries', true), array('controller'=> 'countries', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Country', true), array('controller'=> 'countries', 'action'=>'add')); ?> </li>
	</ul>
</div>
