2 <div class="box menubox"> <h2>
3 <a href="#" id="toggle-admin-actions">Actions</a>
6 <div class="block" id="admin-actions">
7 <h5><?php echo __('Users', true); ?></h5>
9 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index')); ?> </li>
14 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
15 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
16 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
17 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
22 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
23 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
24 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
25 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
30 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index', 'user_id' => $user['User']['id'])); ?> </li>
31 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add', 'user_id' => $user['User']['id'])); ?> </li>
32 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
33 <li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
43 <div class="users view">
44 <h2><?php __('User');?></h2>
47 <?php $i = 1; $class = ' altrow';?>
48 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
49 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
50 <?php echo $user['User']['id']; ?>
53 <div style="clear: both"></div>
55 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Name'); ?></div>
56 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
57 <?php echo $user['User']['name']; ?>
60 <div style="clear: both"></div>
62 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Email'); ?></div>
63 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
64 <?php echo $user['User']['email']; ?>
67 <div style="clear: both"></div>
69 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Username'); ?></div>
70 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
71 <?php echo $user['User']['username']; ?>
74 <div style="clear: both"></div>
76 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Role'); ?></div>
77 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
78 <?php echo $user['User']['role']; ?>
81 <div style="clear: both"></div>
90 <a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
92 <div class="block" id="related-records">
96 <h3><?php printf(__('Related %s', true), __('Translations', true));?></h3>
97 <?php if (!empty($user['Translation'])):?>
98 <table cellpadding = "0" cellspacing = "0">
101 <th><?php __('Id'); ?></th>
102 <th><?php __('Identifier Id'); ?></th>
103 <th><?php __('Identifier Column Id'); ?></th>
104 <th><?php __('Translation Text'); ?></th>
105 <th><?php __('User Id'); ?></th>
106 <th><?php __('Best'); ?></th>
107 <th><?php __('Created'); ?></th>
108 <th><?php __('Modified'); ?></th>
109 <th class="actions"><?php __('Actions');?></th>
114 foreach ($user['Translation'] as $translation):
117 $class = ' class="altrow"';
120 <tr<?php echo $class;?>>
121 <td><?php echo $translation['id'];?></td>
122 <td><?php echo $translation['identifier_id'];?></td>
123 <td><?php echo $translation['identifier_column_id'];?></td>
124 <td><?php echo $translation['translation_text'];?></td>
125 <td><?php echo $translation['user_id'];?></td>
126 <td><?php echo $translation['best'];?></td>
127 <td><?php echo $translation['created'];?></td>
128 <td><?php echo $translation['modified'];?></td>
130 <?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
131 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
132 <?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
139 <div class="actions">
141 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
142 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
147 <div class="related">
148 <h3><?php printf(__('Related %s', true), __('Votes', true));?></h3>
149 <?php if (!empty($user['Vote'])):?>
150 <table cellpadding = "0" cellspacing = "0">
153 <th><?php __('Id'); ?></th>
154 <th><?php __('Translation Id'); ?></th>
155 <th><?php __('User Id'); ?></th>
156 <th><?php __('Created'); ?></th>
157 <th><?php __('Modified'); ?></th>
158 <th class="actions"><?php __('Actions');?></th>
163 foreach ($user['Vote'] as $vote):
166 $class = ' class="altrow"';
169 <tr<?php echo $class;?>>
170 <td><?php echo $vote['id'];?></td>
171 <td><?php echo $vote['translation_id'];?></td>
172 <td><?php echo $vote['user_id'];?></td>
173 <td><?php echo $vote['created'];?></td>
174 <td><?php echo $vote['modified'];?></td>
176 <?php echo $this->Html->link(__('View', true), array('controller' => 'votes', 'action' => 'view', $vote['id'])); ?>
177 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'votes', 'action' => 'edit', $vote['id'])); ?>
184 <div class="actions">
186 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
187 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
192 <div class="related">
193 <h3><?php printf(__('Related %s', true), __('Comments', true));?></h3>
194 <?php if (!empty($user['Comment'])):?>
195 <table cellpadding = "0" cellspacing = "0">
198 <th><?php __('Id'); ?></th>
199 <th><?php __('Translation Id'); ?></th>
200 <th><?php __('Identifier Id'); ?></th>
201 <th><?php __('User Id'); ?></th>
202 <th><?php __('Comment'); ?></th>
203 <th><?php __('Created'); ?></th>
204 <th><?php __('Modified'); ?></th>
205 <th class="actions"><?php __('Actions');?></th>
210 foreach ($user['Comment'] as $comment):
213 $class = ' class="altrow"';
216 <tr<?php echo $class;?>>
217 <td><?php echo $comment['id'];?></td>
218 <td><?php echo $comment['translation_id'];?></td>
219 <td><?php echo $comment['identifier_id'];?></td>
220 <td><?php echo $comment['user_id'];?></td>
221 <td><?php echo $comment['comment'];?></td>
222 <td><?php echo $comment['created'];?></td>
223 <td><?php echo $comment['modified'];?></td>
225 <?php echo $this->Html->link(__('View', true), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
226 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
227 <?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comment['id'])); ?>
234 <div class="actions">
236 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index', 'user_id' => $user['User']['id']));?></li>
237 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add', 'user_id' => $user['User']['id']));?></li>
246 <div class="clear"></div>