khanat-opennel-code/code/ryzom/tools/server/www/webtt/app/views/imported_translation_files/admin_view.ctp

92 lines
4.4 KiB
Text
Raw Normal View History

<div class="translationFiles view">
<h2><?php __('Translation File');?></h2>
<dl><?php $i = 0; $class = ' class="altrow"';?>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $translationFile['TranslationFile']['id']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Language'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $this->Html->link($translationFile['Language']['name'], array('controller' => 'languages', 'action' => 'view', $translationFile['Language']['id'])); ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Filename'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $translationFile['TranslationFile']['filename']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $translationFile['TranslationFile']['created']; ?>
&nbsp;
</dd>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo $translationFile['TranslationFile']['modified']; ?>
&nbsp;
</dd>
</dl>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<ul>
<li><?php echo $this->Html->link(__('Edit Translation File', true), array('action' => 'edit', $translationFile['TranslationFile']['id'])); ?> </li>
<li><?php echo $this->Html->link(__('Delete Translation File', true), array('action' => 'delete', $translationFile['TranslationFile']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translationFile['TranslationFile']['id'])); ?> </li>
<li><?php echo $this->Html->link(__('List Translation Files', true), array('action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Translation File', true), array('action' => 'add')); ?> </li>
<li><?php echo $this->Html->link(__('List Languages', true), array('controller' => 'languages', 'action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New Language', true), array('controller' => 'languages', 'action' => 'add')); ?> </li>
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
<li><?php echo $this->Html->link(__('New File Identifier', true), array('controller' => 'file_identifiers', 'action' => 'add')); ?> </li>
</ul>
</div>
<div class="related">
<h3><?php __('Related File Identifiers');?></h3>
<?php if (!empty($translationFile['FileIdentifier'])):?>
<table cellpadding = "0" cellspacing = "0">
<tr>
<th><?php __('Id'); ?></th>
<th><?php __('Translation File Id'); ?></th>
<th><?php __('Command'); ?></th>
<th><?php __('Translation Index'); ?></th>
<th><?php __('Identifier Id'); ?></th>
<th><?php __('Reference String'); ?></th>
<th><?php __('Created'); ?></th>
<th><?php __('Modified'); ?></th>
<th class="actions"><?php __('Actions');?></th>
</tr>
<?php
$i = 0;
foreach ($translationFile['FileIdentifier'] as $fileIdentifier):
$class = null;
if ($i++ % 2 == 0) {
$class = ' class="altrow"';
}
?>
<tr<?php echo $class;?>>
<td><?php echo $fileIdentifier['id'];?></td>
<td><?php echo $fileIdentifier['translation_file_id'];?></td>
<td><?php echo $fileIdentifier['command'];?></td>
<td><?php echo $fileIdentifier['translation_index'];?></td>
<td><?php echo $fileIdentifier['identifier_id'];?></td>
<td><?php echo $fileIdentifier['reference_string'];?></td>
<td><?php echo $fileIdentifier['created'];?></td>
<td><?php echo $fileIdentifier['modified'];?></td>
<td class="actions">
<?php echo $this->Html->link(__('View', true), array('controller' => 'file_identifiers', 'action' => 'view', $fileIdentifier['id'])); ?>
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'file_identifiers', 'action' => 'edit', $fileIdentifier['id'])); ?>
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'file_identifiers', 'action' => 'delete', $fileIdentifier['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $fileIdentifier['id'])); ?>
</td>
</tr>
<?php endforeach; ?>
</table>
<?php endif; ?>
<div class="actions">
<ul>
<li><?php echo $this->Html->link(__('New File Identifier', true), array('controller' => 'file_identifiers', 'action' => 'add'));?> </li>
</ul>
</div>
</div>