63 lines
2.8 KiB
Text
63 lines
2.8 KiB
Text
|
<div class="votes index">
|
||
|
<h2><?php __('Votes');?></h2>
|
||
|
<table cellpadding="0" cellspacing="0">
|
||
|
<tr>
|
||
|
<th><?php echo $this->Paginator->sort('id');?></th>
|
||
|
<th><?php echo $this->Paginator->sort('translation_id');?></th>
|
||
|
<th><?php echo $this->Paginator->sort('user_id');?></th>
|
||
|
<th><?php echo $this->Paginator->sort('created');?></th>
|
||
|
<th><?php echo $this->Paginator->sort('modified');?></th>
|
||
|
<th class="actions"><?php __('Actions');?></th>
|
||
|
</tr>
|
||
|
<?php
|
||
|
$i = 0;
|
||
|
foreach ($votes as $vote):
|
||
|
$class = null;
|
||
|
if ($i++ % 2 == 0) {
|
||
|
$class = ' class="altrow"';
|
||
|
}
|
||
|
?>
|
||
|
<tr<?php echo $class;?>>
|
||
|
<td><?php echo $vote['Vote']['id']; ?> </td>
|
||
|
<td>
|
||
|
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
||
|
</td>
|
||
|
<td>
|
||
|
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
||
|
</td>
|
||
|
<td><?php echo $vote['Vote']['created']; ?> </td>
|
||
|
<td><?php echo $vote['Vote']['modified']; ?> </td>
|
||
|
<td class="actions">
|
||
|
<?php echo $this->Html->link(__('View', true), array('action' => 'view', $vote['Vote']['id'])); ?>
|
||
|
<?php echo $this->Html->link(__('Edit', true), array('action' => 'edit', $vote['Vote']['id'])); ?>
|
||
|
<?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $vote['Vote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vote['Vote']['id'])); ?>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<?php endforeach; ?>
|
||
|
</table>
|
||
|
<p>
|
||
|
<?php
|
||
|
echo $this->Paginator->counter(array(
|
||
|
'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
|
||
|
));
|
||
|
?> </p>
|
||
|
|
||
|
<div class="paging">
|
||
|
<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
|
||
|
| <?php echo $this->Paginator->numbers();?>
|
||
|
|
|
||
|
<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="actions">
|
||
|
<h3><?php __('Actions'); ?></h3>
|
||
|
<ul>
|
||
|
<li><?php echo $this->Html->link(__('New Vote', true), array('action' => 'add')); ?></li>
|
||
|
<li><br></li>
|
||
|
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||
|
<li style="padding-left: 10px"><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||
|
<li><br></li>
|
||
|
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||
|
<li style="padding-left: 10px"><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||
|
</ul>
|
||
|
</div>
|