2 <div class="box menubox">
4 <a href="#" id="toggle-admin-actions">Actions</a>
7 <div class="block" id="admin-actions">
8 <h5><?php echo __('Translations', true); ?></h5>
10 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li> </ul>
14 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
19 <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
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>
31 <?php echo $this->element('neighbours'); ?>
34 <?php // var_dump($identifierColumnsDetails); ?>
35 <?php // var_dump($this->data['IdentifierColumn']); ?>
40 <h2 id="page-heading"><?php printf(__('Add %s', true), __('Translation', true)); ?></h2>
42 <div class="translations form">
43 <?php echo $this->Form->create('Translation');?>
45 <legend><?php printf(__('Translation', true) . ' :: ' . $identifier['Identifier']['identifier']); ?></legend>
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']))
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')));
61 // echo $this->Form->input('translation_text', array("rows" => 1, "cols" => 60));
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')));
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));?>
78 <div class="identifiers view">
79 <h2><?php __('Identifier');?></h2>
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']; ?>
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'])); ?>
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']; ?>
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']; ?>
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']; ?>
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']; ?>
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']; ?>
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']; ?>
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']; ?>
144 <div style="clear: both"></div>
151 <div class="clear"></div>