<div class="invoices form">
<?php echo $form->create('Invoice');?>
	<fieldset>
 		<legend><?php __('Add Invoice');?></legend>
	<?php
		echo $form->input('issue_date');
		echo $form->input('due_date');
		echo $form->input('job_id');
		
		echo $form->input('enquiry_id', array('type'=>'hidden','value'=>$enquiry['Enquiry']['id']));
		echo $form->input('user_id', array('type'=>'hidden','value'=>$user['User']['id']));
                echo $form->input('customer_id', array('type'=>'hidden', 'value'=>$enquiry['Enquiry']['customer_id']));
                
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Invoices', true), array('action' => 'index'));?></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>
		<li><?php echo $html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>
<?php debug($jobs); ?>