<div class="invoices form">
<?php echo $form->create('Invoice');?>
	<fieldset>
 		<legend><?php __('Edit Invoice');?></legend>
	<?php
		echo $form->input('id');
		echo $form->input('issue_date');
		echo $form->input('due_date');
		echo $form->input('title');
		echo $form->input('paid');
		echo $form->input('payment_received_date');
		echo $form->input('enquiry_id', array('type'=>'hidden'));
                echo $form->input('job_id');
		echo $form->input('user_id');
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Delete', true), array('action' => 'delete', $form->value('Invoice.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $form->value('Invoice.id'))); ?></li>
		<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>
