2 <div class="box menubox">
3 <h2><a href="#" id="toggle-admin-actions">Actions</a></h2>
5 <div class="block" id="admin-actions">
6 <h5><?php echo __('Translations', true); ?></h5>
8 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index')); ?> </li>
10 <h5><?php echo __('Identifiers', true); ?></h5>
12 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
14 <h5><?php echo __('Users', true); ?></h5>
16 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
18 <h5><?php echo __('Votes', true); ?></h5>
20 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
28 <h2 id="page-heading"><?php __('Translations');?></h2>
29 <table cellpadding="0" cellspacing="0"> <?php $tableHeaders = $html->tableHeaders(array($paginator->sort('id'),$paginator->sort('identifier_id'),$paginator->sort('translation_text'),$paginator->sort('user_id'),$paginator->sort('created'),$paginator->sort('modified'),__('Actions', true),));
30 echo '<thead>'.$tableHeaders.'</thead>'; ?>
34 foreach ($translations as $translation):
37 $class = ' class="altrow"';
40 <tr<?php echo $class;?>>
41 <td><?php echo $translation['Translation']['id']; ?></td>
43 <?php echo $this->Html->link($translation['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $translation['Identifier']['id'])); ?>
45 <td><?php echo $translation['Translation']['translation_text']; ?></td>
47 <?php echo $this->Html->link($translation['User']['name'], array('controller' => 'users', 'action' => 'view', $translation['User']['id'])); ?>
49 <td><?php echo $translation['Translation']['created']; ?></td>
50 <td><?php echo $translation['Translation']['modified']; ?></td>
52 <?php echo $this->Html->link(__('View', true), array('action' => 'view', $translation['Translation']['id'])); ?>
53 <?php echo ' | ' . $this->Html->link(__('Edit', true), array('action' => 'edit', $translation['Translation']['id'])); ?>
54 <?php echo ' | ' . $this->Html->link(__('Delete', true), array('action' => 'delete', $translation['Translation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['Translation']['id'])); ?>
55 | <?php echo $this->Html->link(__('Vote', true), array('controller' => 'votes', 'action' => 'vote', 'translation_id' => $translation['Translation']['id'])); ?>
59 <?php echo '<tfoot class=\'dark\'>'.$tableHeaders.'</tfoot>'; ?>
65 echo $this->Paginator->counter(array(
66 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
71 <?php echo $this->Paginator->prev('<< '.__('previous', true), array(), null, array('class'=>'disabled'));?>
72 | <?php echo $this->Paginator->numbers();?> |
73 <?php echo $this->Paginator->next(__('next', true).' >>', array(), null, array('class' => 'disabled'));?>
76 <div class="clear"></div>