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 __('Translations', true); ?></h5>
9 <li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Translation', true)), array('action' => 'edit', $translation['Translation']['id'])); ?> </li>
10 <li><?php echo $this->Html->link(sprintf(__('Delete %s', true), __('Translation', true)), array('action' => 'delete', $translation['Translation']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['Translation']['id'])); ?> </li>
15 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
20 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
25 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'translation_id' => $translation['Translation']['id'])); ?> </li>
26 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add', 'translation_id' => $translation['Translation']['id'])); ?> </li>
32 <?php echo $this->element('neighbours'); ?>
38 <div class="translations view">
39 <h2><?php __('Translation');?></h2>
42 <?php $i = 1; $class = ' altrow';?>
43 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
44 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
45 <?php echo $translation['Translation']['id']; ?>
48 <div style="clear: both"></div>
49 <div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
50 <div class="dd<?php if ($i % 2 == 0) echo $class;?>">
51 <?php echo $this->Html->link($translation['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $translation['Identifier']['id'])); ?>
54 <div style="clear: both"></div>
55 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Text'); ?></div>
56 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
57 <?php echo $translation['Translation']['translation_text']; ?>
61 <div style="clear: both"></div>
62 <div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('User'); ?></div>
63 <div class="dd<?php if ($i % 2 == 0) echo $class;?>">
64 <?php echo $this->Html->link($translation['User']['name'], array('controller' => 'users', 'action' => 'view', $translation['User']['id'])); ?>
67 <div style="clear: both"></div>
68 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
69 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
70 <?php echo $translation['Translation']['created']; ?>
74 <div style="clear: both"></div>
75 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
76 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
77 <?php echo $translation['Translation']['modified']; ?>
81 <div style="clear: both"></div>
85 <?php if (!empty($identifier['IdentifierColumn'])):?>
86 <table cellpadding = "0" cellspacing = "0">
89 <th><?php __('Column Name'); ?></th>
90 <th><?php __('Reference String'); ?></th>
91 <th><?php __('Translation'); ?></th>
96 foreach ($columnTranslations as $identifierColumn):
99 $class = ' class="altrow"';
102 <tr<?php echo $class;?>>
103 <td><?php echo $identifierColumn['IdentifierColumn']['column_name'];?></td>
104 <td><?php echo $identifierColumn['IdentifierColumn']['reference_string'];?></td>
105 <td><?php echo $identifierColumn['Translation']['translation_text'];?></td>
116 <div class="identifiers view">
117 <h2><?php __('Identifier');?></h2>
120 <?php $i = 1; $class = ' altrow';?>
121 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
122 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
123 <?php echo $identifier['Identifier']['id']; ?>
127 <div style="clear: both"></div>
128 <div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation File'); ?></div>
129 <div class="dd<?php if ($i % 2 == 0) echo $class;?>">
130 <?php echo $this->Html->link($identifier['TranslationFile']['filename_template'], array('controller' => 'translation_files', 'action' => 'view', $identifier['TranslationFile']['id'])); ?>
133 <div style="clear: both"></div>
134 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
135 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
136 <?php echo $identifier['Identifier']['identifier']; ?>
140 <div style="clear: both"></div>
141 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
142 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
143 <?php echo $identifier['Identifier']['arguments']; ?>
147 <div style="clear: both"></div>
148 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
149 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
150 <?php echo $identifier['Identifier']['reference_string']; ?>
154 <div style="clear: both"></div>
155 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
156 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
157 <?php echo $identifier['Identifier']['translated']; ?>
161 <div style="clear: both"></div>
162 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
163 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
164 <?php echo $identifier['Identifier']['created']; ?>
168 <div style="clear: both"></div>
169 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
170 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
171 <?php echo $identifier['Identifier']['modified']; ?>
175 <div style="clear: both"></div>
183 <a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
185 <div class="block" id="related-records">
186 <div class="related">
187 <h3><?php printf(__('Related %s', true), __('Votes', true));?></h3>
188 <?php if (!empty($translation['Vote'])):?>
189 <table cellpadding = "0" cellspacing = "0">
192 <th><?php __('Id'); ?></th>
193 <th><?php __('Translation Id'); ?></th>
194 <th><?php __('User Id'); ?></th>
195 <th><?php __('Created'); ?></th>
196 <th><?php __('Modified'); ?></th>
197 <th class="actions"><?php __('Actions');?></th>
202 foreach ($translation['Vote'] as $vote):
205 $class = ' class="altrow"';
208 <tr<?php echo $class;?>>
209 <td><?php echo $vote['id'];?></td>
210 <td><?php echo $vote['translation_id'];?></td>
211 <td><?php echo $vote['user_id'];?></td>
212 <td><?php echo $vote['created'];?></td>
213 <td><?php echo $vote['modified'];?></td>
215 <?php echo $this->Html->link(__('View', true), array('controller' => 'votes', 'action' => 'view', $vote['id'])); ?>
216 <?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'votes', 'action' => 'edit', $vote['id'])); ?>
223 <div class="actions">
225 <li><?php echo $this->Html->link(sprintf(__('List related %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index', 'translation_id' => $translation['Translation']['id']));?></li>
226 <li><?php echo $this->Html->link(sprintf(__('New related %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'vote', 'translation_id' => $translation['Translation']['id']));?></li>
234 <div class="clear"></div>