<div class="questiontypes index">
	<h2><?php echo __('Questiontypes'); ?></h2>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th><?php echo $this->Paginator->sort('title'); ?></th>
			<th><?php echo $this->Paginator->sort('automategrading'); ?></th>
			<th class="actions"><?php echo __('Actions'); ?></th>
	</tr>
	<?php foreach ($questiontypes as $questiontype): ?>
	<tr>
		<td><?php echo $questiontype['Questiontype']['title']; ?>&nbsp;</td>
		<td><?php echo $arr_grading[$questiontype['Questiontype']['automategrading']]; ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Edit'), array('action' => 'edit', $questiontype['Questiontype']['id'])); ?>
			<?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $questiontype['Questiontype']['id']), null, __('Are you sure you want to delete # %s?', $questiontype['Questiontype']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>

</div>