<div class="issues form">
<?php echo $form->create('Issue');?>
	<fieldset>
 		<legend><?php __('Add Issue');?></legend>
	<?php
		echo $form->input('issue_type', array('options' => $issueTypes));
                echo $form->input('title');
		echo $form->input('description');
		echo $form->input('issue_priority', array('options'=>$issuePriorities));
		echo $form->input('user_id', array('type'=>'hidden', 'value'=>$currentuser['User']['id']));
		
	?>
	</fieldset>
<?php echo $form->end('Submit');?>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('List Issues', true), array('action' => 'index'));?></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>
		<li><?php echo $html->link(__('List Issue Actions', true), array('controller' => 'issue_actions', 'action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Issue Action', true), array('controller' => 'issue_actions', 'action' => 'add')); ?> </li>
	</ul>
</div>
<?php debug($currentuser); ?>