<div class="contacts form">
<?php echo $form->create('Contact', array('action'=>'add_to_customer/customerid:'.$customer['Customer']['id']));?>
	<fieldset>
 		<legend><?php __('Add Contact to: '.$customer['Customer']['name']);?></legend>
	<?php
		echo $form->hidden('customer_id', array('value' => $customer['Customer']['id']));
		echo $form->input('first_name', array('label' => 'First Name', 'title'=>'The first name of this Contact'));
		echo $form->input('last_name', array('label' => 'Last Name', 'title'=>'The last name of this Contact'));
		echo $form->input('email');
		echo $form->input('phone', array('label' => 'Phone Number', 'title'=>'Phone Number'));
		echo $form->input('phone_extension', array('label' => 'Phone Extension', 'title'=>'If the Contact is on an extension enter it here. No Need enter EXT or similar - numbers only'));
		echo $form->input('direct_phone', array('label' => 'Direct Phone', 'title'=>'Direct Phone number for this Contact'));
		echo $form->input('mobile');
		echo $form->input('fax');
		echo $form->input('contact_category_id', array('label'=>'Contact Department', 'empty' => 'Please Choose a Department'));
		echo $form->input('job_title');
		echo $form->input('notes');

?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Contacts', 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 Enquiries', true), array('controller'=> 'enquiries', 'action'=>'index')); ?> </li>
		<li><?php echo $html->link(__('New Enquiry', true), array('controller'=> 'enquiries', 'action'=>'add')); ?> </li>
	</ul>
</div>
