Merge branch 'fixes' into main/rendor-staging
[ryzomcore.git] / web / public_php / webtt / app / views / translations / add.ctp
blobd23e0f5c670b81b95a65d1d8243ad3a22b84a1c1
1 <div class="grid_3">
2         <div class="box menubox">
3                                 <h2>
4                         <a href="#" id="toggle-admin-actions">Actions</a>
5                 </h2>
6                 <div class="inbox">
7                 <div class="block" id="admin-actions">
8                         <h5><?php echo __('Translations', true); ?></h5>
9                         <ul class="menu">
10                                                 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li>                    </ul>
11                         
12                         <h5>Identifiers</h5>
13                         <ul class="menu">
14                                 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
15                         </ul>
17                         <h5>Users</h5>
18                         <ul class="menu">
19                                 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
20                         </ul>
22                         <h5>Votes</h5>
23                         <ul class="menu">
24                                 <li><?php echo $this->Html->link(sprintf(__('List %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>
26                         </ul>
27                 </div>
28                 </div>
29         </div>
31         <?php echo $this->element('neighbours'); ?>
32 </div>
34 <?php // var_dump($identifierColumnsDetails); ?>
35 <?php // var_dump($this->data['IdentifierColumn']); ?>
37 <div class="grid_13">
40     <h2 id="page-heading"><?php printf(__('Add %s', true), __('Translation', true)); ?></h2>
41     
42         <div class="translations form">
43         <?php echo $this->Form->create('Translation');?>
44                 <fieldset>
45                                                 <legend><?php printf(__('Translation', true) . ' :: ' . $identifier['Identifier']['identifier']); ?></legend>
46                                         <?php
47 //              echo ($identifiers[$identifier['Identifier']['id']
48                 echo $form->hidden('Translation.identifier_id', array('default' => $identifier['Identifier']['id']));
49                 echo $form->hidden('Translation.user_id', array('value' => $this->Session->read('Auth.User.id')));
50                 if (!empty($identifier['IdentifierColumn']))
51                 {
52                         $i=0;
53                         foreach($identifierColumns as $key => $column) {
54                                 echo $form->hidden('ChildTranslation.'.$i.'.identifier_column_id', array('default' => $key));
55                                 echo $form->input('ChildTranslation.'.$i.'.identifier_column_id', array('type' => 'text', 'name'=>'buzu', 'value'=>$column, 'readonly' => 'readonly'));
56                                 echo $form->input('ChildTranslation.'.$i.'.translation_text', array('default' => $identifierColumnsDetails[$key]['reference_string'], 'rows' => 1, 'cols' => 80));
57 //                              echo $form->input('ChildTranslation.'.$i.'.id');
58                                 echo $form->hidden('ChildTranslation.'.$i.'.user_id', array('value' => $this->Session->read('Auth.User.id')));
59                                 $i++;
60                         }
61 //                      echo $this->Form->input('translation_text', array("rows" => 1, "cols" => 60));
62                 }
63                 else
64                 {
65                         echo $this->Form->hidden('identifier_id', array('default' => $identifier['Identifier']['id']));
66                         echo $this->Form->input('translation_text', array('default' => $identifier['Identifier']['reference_string'], 'rows' => 8, 'cols' => 80));
67                         echo $this->Form->hidden('user_id', array('value' => $this->Session->read('Auth.User.id')));
68                 }
69                 
70         ?>
71                 </fieldset>
72                 <div class="box">
73                 <?php echo $this->Form->end(array('label' => __('Save and go to next identifier', true), 'name' => 'Next'));?>
74                 <?php echo $this->Form->end(__('Save', true));?>
75                 </div>
76         </div>
77 <div class="box">
78         <div class="identifiers view">
79         <h2><?php  __('Identifier');?></h2>
80                 <div class="block">
81                         <div class="dl">
82                         <?php $i = 1; $class = ' altrow';?>
83                                                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
84                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
85                         <?php echo $identifier['Identifier']['id']; ?>
87                 </div>
88                 <?php $i++; ?>
89                 <div style="clear: both"></div>
90                 <div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation File'); ?></div>
91                 <div class="dd<?php if ($i % 2 == 0) echo $class;?>">
92                         <?php echo $this->Html->link($identifier['TranslationFile']['filename_template'], array('controller' => 'translation_files', 'action' => 'view', $identifier['TranslationFile']['id'])); ?>
93                 </div>
94                 <?php $i++; ?>
95                 <div style="clear: both"></div>
96                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Index'); ?></div>
97                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
98                         <?php echo $identifier['Identifier']['translation_index']; ?>
100                 </div>
101                 <?php $i++; ?>
102                 <div style="clear: both"></div>
103                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
104                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
105                         <?php echo $identifier['Identifier']['identifier']; ?>
107                 </div>
108                 <?php $i++; ?>
109                 <div style="clear: both"></div>
110                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
111                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
112                         <?php echo $identifier['Identifier']['arguments']; ?>
114                 </div>
115                 <?php $i++; ?>
116                 <div style="clear: both"></div>
117                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
118                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
119                         <?php echo $identifier['Identifier']['reference_string']; ?>
121                 </div>
122                 <?php $i++; ?>
123                 <div style="clear: both"></div>
124                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
125                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
126                         <?php echo $identifier['Identifier']['translated']; ?>
128                 </div>
129                 <?php $i++; ?>
130                 <div style="clear: both"></div>
131                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
132                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
133                         <?php echo $identifier['Identifier']['created']; ?>
135                 </div>
136                 <?php $i++; ?>
137                 <div style="clear: both"></div>
138                 <div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
139                 <div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
140                         <?php echo $identifier['Identifier']['modified']; ?>
142                 </div>
143                 <?php $i++; ?>
144                 <div style="clear: both"></div>
145                         </div>
146                 </div>
147         </div>
148 </div>
150 </div>
151 <div class="clear"></div>