<h4 class="fr">Knowledge base Wiki</h4>
<div class="cl"></div>

<div class="contents form userForm addwikiform">
	<p>Table of content</p>
	<?php echo $this->Form->create('Content',array('action'=>'add')); ?>
	<fieldset>
		<legend><?php echo __('Add wiki content'); ?></legend>
			<?php
				echo $this->Form->input('id');
				echo $this->Form->input('type',array('type'=>'hidden','value'=>'2'));
				echo $this->Form->input('title',array('label'=>false));
			?>
	</fieldset>
	<?php echo $this->Form->end(__('Submit')); ?>
</div>

<div class="wikiList">
	
	<table>
		<tr>
			<td><?php echo $this->Html->link($wikidetails[0]['Content']['title'],array('action'=>'wikidetails',$wikidetails[0]['Content']['id']));?></td>	
			<td><?php echo $this->Html->link('Edit',array('action'=>'edit',$wikidetails[0]['Content']['id']));?></td>			
			<td><?php echo $this->Form->postLink(__('Delete'), array('action' => 'delete', $wikidetails[0]['Content']['id']), null, __('Are you sure you want to delete # %s?',  $wikidetails[0]['Content']['id']));?></td>
		</tr>
	</table>
	
	<div class="wikidetails">
		<?php echo $wikidetails[0]['Content']['content']?>
	</div>
</div>