Linux multi-monitor fullscreen support
[ryzomcore.git] / web / public_php / webtt / app / views / translations / view.ctp
blobcc943d0f024c819f1480c1c3fdabb27ac61bcef4
1 <div class="grid_3">
2         <div class="box menubox">               <h2>
3                         <a href="#" id="toggle-admin-actions">Actions</a>
4                 </h2>
5                 <div class="inbox">
6                 <div class="block" id="admin-actions">
7                         <h5><?php echo __('Translations', true); ?></h5>
8                         <ul class="menu">
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>
11                         </ul>
12                                 
13                         <h5>Identifiers</h5>
14                         <ul class="menu">
15                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
16                         </ul>
18                         <h5>Users</h5>
19                         <ul class="menu">
20                                 <li><?php echo $this->Html->link(sprintf(__('List all %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
21                         </ul>
23                         <h5>Votes</h5>
24                         <ul class="menu">
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>
27                         </ul>
28                 </div>
29                 </div>
30         </div>
32         <?php echo $this->element('neighbours'); ?>
33 </div>
35 <div class="grid_13">
37 <div class="box">
38         <div class="translations view">
39                 <h2><?php  __('Translation');?></h2>
40                 <div class="block">
41                         <div class="dl">
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']; ?>
46                         </div>
47                         <?php $i++; ?>
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'])); ?>
52                         </div>
53                         <?php $i++; ?>
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']; ?>
58         
59                         </div>
60                         <?php $i++; ?>
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'])); ?>
65                         </div>
66                         <?php $i++; ?>
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']; ?>
71         
72                         </div>
73                         <?php $i++; ?>
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']; ?>
78         
79                         </div>
80                         <?php $i++; ?>
81                         <div style="clear: both"></div>
82                         </div>
83                 </div>
85                         <?php if (!empty($identifier['IdentifierColumn'])):?>
86                         <table cellpadding = "0" cellspacing = "0">
87                                 <thead>
88                                         <tr>
89                                                 <th><?php __('Column Name'); ?></th>
90                                                 <th><?php __('Reference String'); ?></th>
91                                                 <th><?php __('Translation'); ?></th>
92                                         </tr>
93                                 </thead>
94                                 <?php
95                                 $i = 0;
96                                 foreach ($columnTranslations as $identifierColumn):
97                                         $class = null;
98                                         if ($i++ % 2 == 0) {
99                                                 $class = ' class="altrow"';
100                                         }
101                                 ?>
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>
106                                 </tr>
107                                 <?php endforeach; ?>
108                         </table>
109                         <?php endif; ?>
112         </div>
113 </div>
115 <div class="box">
116         <div class="identifiers view">
117         <h2><?php  __('Identifier');?></h2>
118                 <div class="block">
119                         <div class="dl">
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']; ?>
125                 </div>
126                 <?php $i++; ?>
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'])); ?>
131                 </div>
132                 <?php $i++; ?>
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']; ?>
138                 </div>
139                 <?php $i++; ?>
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']; ?>
145                 </div>
146                 <?php $i++; ?>
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']; ?>
152                 </div>
153                 <?php $i++; ?>
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']; ?>
159                 </div>
160                 <?php $i++; ?>
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']; ?>
166                 </div>
167                 <?php $i++; ?>
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']; ?>
173                 </div>
174                 <?php $i++; ?>
175                 <div style="clear: both"></div>
176                         </div>
177                 </div>
178         </div>
179 </div>
181 <div class="box">
182         <h2>
183                 <a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
184         </h2>
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">
190                                 <thead>
191                                         <tr>
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>
198                                         </tr>
199                                 </thead>
200                         <?php
201                                 $i = 0;
202                                 foreach ($translation['Vote'] as $vote):
203                                         $class = null;
204                                         if ($i++ % 2 == 0) {
205                                                 $class = ' class="altrow"';
206                                         }
207                                 ?>
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>
214                         <td class="actions">
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'])); ?>
217                         </td>
218                 </tr>
219         <?php endforeach; ?>
220                         </table>
221                 <?php endif; ?>
223                         <div class="actions">
224                                 <ul>
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>
227                                 </ul>
228                         </div>
229                 </div>
230                         </div>
231 </div>
233 </div>
234 <div class="clear"></div>