<div class="issues view">
<h2><?php  __('Issue');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Title'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['title']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Description'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['description']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Priority'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['priority']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $html->link($issue['User']['id'], array('controller' => 'users', 'action' => 'view', $issue['User']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Resolved'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $issue['Issue']['resolved']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<ul>
		<li><?php echo $html->link(__('Edit Issue', true), array('action' => 'edit', $issue['Issue']['id'])); ?> </li>
		<li><?php echo $html->link(__('Delete Issue', true), array('action' => 'delete', $issue['Issue']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $issue['Issue']['id'])); ?> </li>
		<li><?php echo $html->link(__('List Issues', true), array('action' => 'index')); ?> </li>
		<li><?php echo $html->link(__('New Issue', true), array('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>
		<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>
<div class="related">
	<h3><?php __('Related Issue Actions');?></h3>
	<?php if (!empty($issue['IssueAction'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Description'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($issue['IssueAction'] as $issueAction):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $issueAction['id'];?></td>
			<td><?php echo $issueAction['created'];?></td>
			<td><?php echo $issueAction['user_id'];?></td>
			<td><?php echo $issueAction['description'];?></td>
			<td class="actions">
				<?php echo $html->link(__('View', true), array('controller' => 'issue_actions', 'action' => 'view', $issueAction['id'])); ?>
				<?php echo $html->link(__('Edit', true), array('controller' => 'issue_actions', 'action' => 'edit', $issueAction['id'])); ?>
				<?php echo $html->link(__('Delete', true), array('controller' => 'issue_actions', 'action' => 'delete', $issueAction['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $issueAction['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $html->link(__('New Issue Action', true), array('controller' => 'issue_actions', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
