parent
4d7293d0f5
commit
0055bd7c4e
@ -1,25 +1,46 @@
|
|||||||
<div class="fileIdentifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('FileIdentifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Add File Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
echo $this->Form->input('translation_file_id');
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Add %s', true), __('File Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="fileIdentifiers form">
|
||||||
|
<?php echo $this->Form->create('FileIdentifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('File Identifier', true)); ?></legend>
|
||||||
|
<?php
|
||||||
|
echo $this->Form->input('imported_translation_file_id');
|
||||||
echo $this->Form->input('command');
|
echo $this->Form->input('command');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,25 +1,46 @@
|
|||||||
<div class="fileIdentifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('FileIdentifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add File Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
echo $this->Form->input('translation_file_id');
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('File Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="fileIdentifiers form">
|
||||||
|
<?php echo $this->Form->create('FileIdentifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('File Identifier', true)); ?></legend>
|
||||||
|
<?php
|
||||||
|
echo $this->Form->input('imported_translation_file_id');
|
||||||
echo $this->Form->input('command');
|
echo $this->Form->input('command');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,27 +1,47 @@
|
|||||||
<div class="fileIdentifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('FileIdentifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit File Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('File Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="fileIdentifiers form">
|
||||||
|
<?php echo $this->Form->create('FileIdentifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('File Identifier # %s', true), $this->Form->value('FileIdentifier.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('translation_file_id');
|
echo $this->Form->input('imported_translation_file_id');
|
||||||
echo $this->Form->input('command');
|
echo $this->Form->input('command');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('FileIdentifier.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('FileIdentifier.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,58 +1,101 @@
|
|||||||
<div class="fileIdentifiers view">
|
<div class="grid_3">
|
||||||
<h2><?php __('File Identifier');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="fileIdentifiers view">
|
||||||
|
<h2><?php __('File Identifier');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['id']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation File'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<?php echo $this->Html->link($fileIdentifier['TranslationFile']['filename'], array('controller' => 'translation_files', 'action' => 'view', $fileIdentifier['TranslationFile']['id'])); ?>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Imported Translation File'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
</dd>
|
<?php echo $this->Html->link($fileIdentifier['ImportedTranslationFile']['filename'], array('controller' => 'imported_translation_files', 'action' => 'view', $fileIdentifier['ImportedTranslationFile']['id'])); ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Command'); ?></dt>
|
</div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Command'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['command']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['command']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation Index'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Index'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['translation_index']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['translation_index']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Identifier'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($fileIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $fileIdentifier['Identifier']['id'])); ?>
|
<?php echo $this->Html->link($fileIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $fileIdentifier['Identifier']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Reference String'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['reference_string']; ?>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $fileIdentifier['FileIdentifier']['arguments']; ?>
|
||||||
</dd>
|
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
</div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<textarea rows="10" style="width: 100%" readonly="true"><?php echo $fileIdentifier['FileIdentifier']['reference_string']; ?></textarea>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['created']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['modified']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit File Identifier', true), array('action' => 'edit', $fileIdentifier['FileIdentifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('Delete File Identifier', true), array('action' => 'delete', $fileIdentifier['FileIdentifier']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $fileIdentifier['FileIdentifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New File Identifier', true), array('action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,27 +1,47 @@
|
|||||||
<div class="fileIdentifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('FileIdentifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Edit File Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Edit %s', true), __('File Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="fileIdentifiers form">
|
||||||
|
<?php echo $this->Form->create('FileIdentifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('File Identifier # %s', true), $this->Form->value('FileIdentifier.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('translation_file_id');
|
echo $this->Form->input('imported_translation_file_id');
|
||||||
echo $this->Form->input('command');
|
echo $this->Form->input('command');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('FileIdentifier.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('FileIdentifier.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,58 +1,101 @@
|
|||||||
<div class="fileIdentifiers view">
|
<div class="grid_3">
|
||||||
<h2><?php __('File Identifier');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('File Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="fileIdentifiers view">
|
||||||
|
<h2><?php __('File Identifier');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['id']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation File'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<?php echo $this->Html->link($fileIdentifier['TranslationFile']['filename'], array('controller' => 'translation_files', 'action' => 'view', $fileIdentifier['TranslationFile']['id'])); ?>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Imported Translation File'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
</dd>
|
<?php echo $this->Html->link($fileIdentifier['ImportedTranslationFile']['filename'], array('controller' => 'imported_translation_files', 'action' => 'view', $fileIdentifier['ImportedTranslationFile']['id'])); ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Command'); ?></dt>
|
</div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Command'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['command']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['command']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation Index'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Index'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['translation_index']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['translation_index']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Identifier'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($fileIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $fileIdentifier['Identifier']['id'])); ?>
|
<?php echo $this->Html->link($fileIdentifier['Identifier']['identifier'], array('controller' => 'identifiers', 'action' => 'view', $fileIdentifier['Identifier']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Reference String'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['reference_string']; ?>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $fileIdentifier['FileIdentifier']['arguments']; ?>
|
||||||
</dd>
|
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
</div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<textarea rows="10" style="width: 100%" readonly="true"><?php echo $fileIdentifier['FileIdentifier']['reference_string']; ?></textarea>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['created']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $fileIdentifier['FileIdentifier']['modified']; ?>
|
<?php echo $fileIdentifier['FileIdentifier']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit File Identifier', true), array('action' => 'edit', $fileIdentifier['FileIdentifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('Delete File Identifier', true), array('action' => 'delete', $fileIdentifier['FileIdentifier']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $fileIdentifier['FileIdentifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New File Identifier', true), array('action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,25 +1,52 @@
|
|||||||
<div class="identifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Identifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Add Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Add %s', true), __('Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="identifiers form">
|
||||||
|
<?php echo $this->Form->create('Identifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Identifier', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier');
|
echo $this->Form->input('identifier');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
echo $this->Form->input('translated');
|
echo $this->Form->input('translated');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index'));?></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 Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,25 +1,69 @@
|
|||||||
<div class="identifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Identifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Best Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Comments</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifier Columns</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifier Columns', true)), array('controller' => 'identifier_columns', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="identifiers form">
|
||||||
|
<?php echo $this->Form->create('Identifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Identifier', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
|
echo $this->Form->input('translation_file_id');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier');
|
echo $this->Form->input('identifier');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
echo $this->Form->input('translated');
|
echo $this->Form->input('translated');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<div class="box">
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="clear"></div>
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index'));?></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 Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
@ -1,27 +1,70 @@
|
|||||||
<div class="identifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Identifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Best Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Comments</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Identifier Columns</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifier Columns', true)), array('controller' => 'identifier_columns', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="identifiers form">
|
||||||
|
<?php echo $this->Form->create('Identifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Identifier # %s', true), $this->Form->value('Identifier.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
|
echo $this->Form->input('translation_file_id');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier');
|
echo $this->Form->input('identifier');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
echo $this->Form->input('translated');
|
echo $this->Form->input('translated');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
|
<div class="box">
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="clear"></div>
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Identifier.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Identifier.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index'));?></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 Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
|
@ -1,152 +1,394 @@
|
|||||||
<div class="identifiers view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Identifier');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
<?php echo $identifier['Identifier']['id']; ?>
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Language'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
</ul>
|
||||||
<?php echo $this->Html->link($identifier['Language']['name'], array('controller' => 'languages', 'action' => 'view', $identifier['Language']['id'])); ?>
|
|
||||||
|
<h5>Translation Files</h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation Index'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
</ul>
|
||||||
<?php echo $identifier['Identifier']['translation_index']; ?>
|
|
||||||
|
<h5>Translations</h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Identifier'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Best Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
<?php echo $identifier['Identifier']['identifier']; ?>
|
</ul>
|
||||||
|
|
||||||
</dd>
|
<h5>Translations</h5>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Reference String'); ?></dt>
|
<ul class="menu">
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
</ul>
|
||||||
<?php echo $identifier['Identifier']['reference_string']; ?>
|
|
||||||
|
<h5>Comments</h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translated'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
|
||||||
<?php echo $identifier['Identifier']['translated']; ?>
|
</ul>
|
||||||
|
|
||||||
</dd>
|
<h5>File Identifiers</h5>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<ul class="menu">
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
<?php echo $identifier['Identifier']['created']; ?>
|
</ul>
|
||||||
|
|
||||||
</dd>
|
<h5>Identifier Columns</h5>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<ul class="menu">
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifier Columns', true)), array('controller' => 'identifier_columns', 'action' => 'index')); ?> </li>
|
||||||
<?php echo $identifier['Identifier']['modified']; ?>
|
</ul>
|
||||||
|
</div>
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit Identifier', true), array('action' => 'edit', $identifier['Identifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('Delete Identifier', true), array('action' => 'delete', $identifier['Identifier']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $identifier['Identifier']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', 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 Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', '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>
|
||||||
<div class="related">
|
|
||||||
<h3><?php __('Related Translations');?></h3>
|
<div class="grid_13">
|
||||||
<?php if (!empty($identifier['Translation'])):?>
|
|
||||||
<table cellpadding = "0" cellspacing = "0">
|
<div class="box">
|
||||||
<tr>
|
<div class="identifiers view">
|
||||||
<th><?php __('Id'); ?></th>
|
<h2><?php __('Identifier');?></h2>
|
||||||
<th><?php __('Identifier Id'); ?></th>
|
<div class="block">
|
||||||
<th><?php __('Translation Text'); ?></th>
|
<div class="dl">
|
||||||
<th><?php __('User Id'); ?></th>
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
<th><?php __('Created'); ?></th>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
<th><?php __('Modified'); ?></th>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
<?php echo $identifier['Identifier']['id']; ?>
|
||||||
</tr>
|
</div>
|
||||||
<?php
|
<?php $i++; ?>
|
||||||
$i = 0;
|
<div style="clear: both"></div>
|
||||||
foreach ($identifier['Translation'] as $translation):
|
|
||||||
$class = null;
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Language Id'); ?></div>
|
||||||
if ($i++ % 2 == 0) {
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
$class = ' class="altrow"';
|
<?php echo $identifier['Identifier']['language_id']; ?>
|
||||||
}
|
</div>
|
||||||
?>
|
<?php $i++; ?>
|
||||||
<tr<?php echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<td><?php echo $translation['id'];?></td>
|
|
||||||
<td><?php echo $translation['identifier_id'];?></td>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation File'); ?></div>
|
||||||
<td><?php echo $translation['translation_text'];?></td>
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<td><?php echo $translation['user_id'];?></td>
|
<?php echo $this->Html->link($identifier['TranslationFile']['filename_template'], array('controller' => 'translation_files', 'action' => 'view', $identifier['TranslationFile']['id'])); ?>
|
||||||
<td><?php echo $translation['created'];?></td>
|
</div>
|
||||||
<td><?php echo $translation['modified'];?></td>
|
<?php $i++; ?>
|
||||||
<td class="actions">
|
<div style="clear: both"></div>
|
||||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
|
|
||||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Index'); ?></div>
|
||||||
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
</td>
|
<?php echo $identifier['Identifier']['translation_index']; ?>
|
||||||
</tr>
|
</div>
|
||||||
<?php endforeach; ?>
|
<?php $i++; ?>
|
||||||
</table>
|
<div style="clear: both"></div>
|
||||||
<?php endif; ?>
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
<div class="actions">
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<ul>
|
<?php echo $identifier['Identifier']['identifier']; ?>
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add'));?> </li>
|
</div>
|
||||||
</ul>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['arguments']; ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['reference_string']; ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['translated']; ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['created']; ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['modified']; ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="related">
|
|
||||||
<h3><?php __('Related File Identifiers');?></h3>
|
<div class="box">
|
||||||
<?php if (!empty($identifier['FileIdentifier'])):?>
|
<h2>
|
||||||
<table cellpadding = "0" cellspacing = "0">
|
<a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
|
||||||
<tr>
|
</h2>
|
||||||
<th><?php __('Id'); ?></th>
|
<div class="block" id="related-records">
|
||||||
<th><?php __('Translation File Id'); ?></th>
|
<!-- RELATED -->
|
||||||
<th><?php __('Command'); ?></th>
|
<!-- BestTranslation -->
|
||||||
<th><?php __('Translation Index'); ?></th>
|
<div class="related">
|
||||||
<th><?php __('Identifier Id'); ?></th>
|
<h3><?php printf(__('Related %s (%s)', true), __('Translations', true), __('Best Translation', true));?></h3>
|
||||||
<th><?php __('Reference String'); ?></th>
|
<?php if (!empty($identifier['BestTranslation']['id'])):?>
|
||||||
<th><?php __('Created'); ?></th>
|
<div class="dl">
|
||||||
<th><?php __('Modified'); ?></th>
|
<?php $i = 0; $class = ' class="altrow"';?>
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
|
||||||
</tr>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Id');?></div>
|
||||||
<?php
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
$i = 0;
|
<?php echo $identifier['BestTranslation']['id'];?>
|
||||||
foreach ($identifier['FileIdentifier'] as $fileIdentifier):
|
</div>
|
||||||
$class = null;
|
<div style="clear: both"></div>
|
||||||
if ($i++ % 2 == 0) {
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Identifier Id');?></div>
|
||||||
$class = ' class="altrow"';
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
}
|
<?php echo $identifier['BestTranslation']['identifier_id'];?>
|
||||||
?>
|
</div>
|
||||||
<tr<?php echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<td><?php echo $fileIdentifier['id'];?></td>
|
<!-- <div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Identifier Column Id');?></div>
|
||||||
<td><?php echo $fileIdentifier['translation_file_id'];?></td>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
<td><?php echo $fileIdentifier['command'];?></td>
|
<?php echo $identifier['BestTranslation']['identifier_column_id'];?>
|
||||||
<td><?php echo $fileIdentifier['translation_index'];?></td>
|
</div>
|
||||||
<td><?php echo $fileIdentifier['identifier_id'];?></td>
|
<div style="clear: both"></div>-->
|
||||||
<td><?php echo $fileIdentifier['reference_string'];?></td>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation Text');?></div>
|
||||||
<td><?php echo $fileIdentifier['created'];?></td>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
<td><?php echo $fileIdentifier['modified'];?></td>
|
<?php echo $identifier['BestTranslation']['translation_text'];?>
|
||||||
<td class="actions">
|
</div>
|
||||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'file_identifiers', 'action' => 'view', $fileIdentifier['id'])); ?>
|
<div style="clear: both"></div>
|
||||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'file_identifiers', 'action' => 'edit', $fileIdentifier['id'])); ?>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('User Id');?></div>
|
||||||
<?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'])); ?>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
</td>
|
<?php echo $identifier['BestTranslation']['user_id'];?>
|
||||||
</tr>
|
</div>
|
||||||
<?php endforeach; ?>
|
<div style="clear: both"></div>
|
||||||
</table>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Best');?></div>
|
||||||
<?php endif; ?>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['BestTranslation']['best'];?>
|
||||||
<div class="actions">
|
</div>
|
||||||
<ul>
|
<div style="clear: both"></div>
|
||||||
<li><?php echo $this->Html->link(__('New File Identifier', true), array('controller' => 'file_identifiers', 'action' => 'add'));?> </li>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Created');?></div>
|
||||||
</ul>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['BestTranslation']['created'];?>
|
||||||
|
</div>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Modified');?></div>
|
||||||
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['BestTranslation']['modified'];?>
|
||||||
|
</div>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<?php if (!empty($identifier['BestTranslation']['id'])):?>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Best Translation', true)), array('controller' => 'translations', 'action' => 'edit', $identifier['BestTranslation']['id'])); ?></li>
|
||||||
|
<?php endif; ?>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Translation -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Translations', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['Translation'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Column Id'); ?></th>
|
||||||
|
<th><?php __('Translation Text'); ?></th>
|
||||||
|
<th><?php __('User Id'); ?></th>
|
||||||
|
<th><?php __('Best'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['Translation'] as $translation):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td><?php echo $translation['id'];?></td>
|
||||||
|
<td><?php echo $translation['identifier_id'];?></td>
|
||||||
|
<td><?php echo $translation['identifier_column_id'];?></td>
|
||||||
|
<td><?php echo $translation['translation_text'];?></td>
|
||||||
|
<td><?php echo $translation['user_id'];?></td>
|
||||||
|
<td><?php echo $translation['best'];?></td>
|
||||||
|
<td><?php echo $translation['created'];?></td>
|
||||||
|
<td><?php echo $translation['modified'];?></td>
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(sprintf(__('Set as %s', true), __('Best Translation', true)), array('controller' => 'translations', 'action' => 'setBest', $translation['id']));?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add'));?></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Comment -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Comments', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['Comment'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Translation Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('User Id'); ?></th>
|
||||||
|
<th><?php __('Comment'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['Comment'] as $comment):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td><?php echo $comment['id'];?></td>
|
||||||
|
<td><?php echo $comment['translation_id'];?></td>
|
||||||
|
<td><?php echo $comment['identifier_id'];?></td>
|
||||||
|
<td><?php echo $comment['user_id'];?></td>
|
||||||
|
<td><?php echo $comment['comment'];?></td>
|
||||||
|
<td><?php echo $comment['created'];?></td>
|
||||||
|
<td><?php echo $comment['modified'];?></td>
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comment['id'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add'));?></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- FileIdentifier -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('File Identifiers', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['FileIdentifier'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Imported Translation File Id'); ?></th>
|
||||||
|
<th><?php __('Command'); ?></th>
|
||||||
|
<th><?php __('Translation Index'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('Arguments'); ?></th>
|
||||||
|
<th><?php __('Reference String'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['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['imported_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['arguments'];?></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'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- IdentifierColumn -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Identifier Columns', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['IdentifierColumn'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('Column Name'); ?></th>
|
||||||
|
<th><?php __('Reference String'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['IdentifierColumn'] as $identifierColumn):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td><?php echo $identifierColumn['id'];?></td>
|
||||||
|
<td><?php echo $identifierColumn['identifier_id'];?></td>
|
||||||
|
<td><?php echo $identifierColumn['column_name'];?></td>
|
||||||
|
<td><?php echo $identifierColumn['reference_string'];?></td>
|
||||||
|
<td><?php echo $identifierColumn['created'];?></td>
|
||||||
|
<td><?php echo $identifierColumn['modified'];?></td>
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'identifier_columns', 'action' => 'view', $identifierColumn['id'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /RELATED -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,27 +1,53 @@
|
|||||||
<div class="identifiers form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Identifier');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Edit Identifier'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Edit %s', true), __('Identifier', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="identifiers form">
|
||||||
|
<?php echo $this->Form->create('Identifier');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Identifier # %s', true), $this->Form->value('Identifier.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
echo $this->Form->input('translation_index');
|
echo $this->Form->input('translation_index');
|
||||||
echo $this->Form->input('identifier');
|
echo $this->Form->input('identifier');
|
||||||
|
echo $this->Form->input('arguments');
|
||||||
echo $this->Form->input('reference_string');
|
echo $this->Form->input('reference_string');
|
||||||
echo $this->Form->input('translated');
|
echo $this->Form->input('translated');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Identifier.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Identifier.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index'));?></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 Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,141 +1,207 @@
|
|||||||
<div class="identifiers view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Identifier');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Identifiers', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Comments</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Comments', true)), array('controller' => 'comments', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="identifiers view">
|
||||||
|
<h2><?php __('Identifier');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $identifier['Identifier']['id']; ?>
|
<?php echo $identifier['Identifier']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Language'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<?php echo $this->Html->link($identifier['Language']['name'], array('controller' => 'languages', 'action' => 'view', $identifier['Language']['id'])); ?>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation File'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
</dd>
|
<?php echo $this->Html->link($identifier['TranslationFile']['filename_template'], array('controller' => 'translation_files', 'action' => 'view', $identifier['TranslationFile']['id'])); ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation Index'); ?></dt>
|
</div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<?php $i++; ?>
|
||||||
<?php echo $identifier['Identifier']['translation_index']; ?>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
</dd>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Identifier'); ?></dt>
|
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
|
||||||
<?php echo $identifier['Identifier']['identifier']; ?>
|
<?php echo $identifier['Identifier']['identifier']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Reference String'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
<?php echo $identifier['Identifier']['reference_string']; ?>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
</dd>
|
<?php echo $identifier['Identifier']['arguments']; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translated'); ?></dt>
|
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<textarea rows="10" style="width: 100%" readonly="true"><?php echo $identifier['Identifier']['reference_string']; ?></textarea>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $identifier['Identifier']['translated']; ?>
|
<?php echo $identifier['Identifier']['translated']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $identifier['Identifier']['created']; ?>
|
<?php echo $identifier['Identifier']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $identifier['Identifier']['modified']; ?>
|
<?php echo $identifier['Identifier']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
</div>
|
<div style="clear: both"></div>
|
||||||
<div class="actions">
|
</div>
|
||||||
<h3><?php __('Actions'); ?></h3>
|
</div>
|
||||||
<ul>
|
</div>
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Languages', true), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="related">
|
|
||||||
<h3><?php __('Related Translations');?></h3>
|
|
||||||
<?php if (!empty($identifier['Translation'])):?>
|
|
||||||
<table cellpadding = "0" cellspacing = "0">
|
|
||||||
<tr>
|
|
||||||
<th><?php __('Id'); ?></th>
|
|
||||||
<th><?php __('Identifier Id'); ?></th>
|
|
||||||
<th><?php __('Translation Text'); ?></th>
|
|
||||||
<th><?php __('User Id'); ?></th>
|
|
||||||
<th><?php __('Created'); ?></th>
|
|
||||||
<th><?php __('Modified'); ?></th>
|
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
$i = 0;
|
|
||||||
foreach ($identifier['Translation'] as $translation):
|
|
||||||
$class = null;
|
|
||||||
if ($i++ % 2 == 0) {
|
|
||||||
$class = ' class="altrow"';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
<tr<?php echo $class;?>>
|
|
||||||
<td><?php echo $translation['id'];?></td>
|
|
||||||
<td><?php echo $translation['identifier_id'];?></td>
|
|
||||||
<td><?php echo $translation['translation_text'];?></td>
|
|
||||||
<td><?php echo $translation['user_id'];?></td>
|
|
||||||
<td><?php echo $translation['created'];?></td>
|
|
||||||
<td><?php echo $translation['modified'];?></td>
|
|
||||||
<td class="actions">
|
|
||||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
|
|
||||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
|
|
||||||
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</table>
|
|
||||||
<?php endif; ?>
|
|
||||||
|
|
||||||
<div class="actions">
|
<div class="box">
|
||||||
<ul>
|
<h2>
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add'));?> </li>
|
<a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
|
||||||
</ul>
|
</h2>
|
||||||
|
<div class="block" id="related-records">
|
||||||
|
<!-- RELATED -->
|
||||||
|
<!-- Translation -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Translations', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['Translation'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('Translation Text'); ?></th>
|
||||||
|
<th><?php __('User Id'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['Translation'] as $translation):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td><?php echo $translation['id'];?></td>
|
||||||
|
<td><?php echo $translation['identifier_id'];?></td>
|
||||||
|
<td><?php echo $translation['translation_text'];?></td>
|
||||||
|
<td><?php echo $translation['user_id'];?></td>
|
||||||
|
<td><?php echo $translation['created'];?></td>
|
||||||
|
<td><?php echo $translation['modified'];?></td>
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'translations', 'action' => 'view', $translation['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'translations', 'action' => 'edit', $translation['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'translations', 'action' => 'delete', $translation['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $translation['id'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add', 'identifier_id' => $identifier['Identifier']['id']));?></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- Comment -->
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Comments', true));?></h3>
|
||||||
|
<?php if (!empty($identifier['Comment'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Translation Id'); ?></th>
|
||||||
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
|
<th><?php __('User Id'); ?></th>
|
||||||
|
<th><?php __('Comment'); ?></th>
|
||||||
|
<th><?php __('Created'); ?></th>
|
||||||
|
<th><?php __('Modified'); ?></th>
|
||||||
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<?php
|
||||||
|
$i = 0;
|
||||||
|
foreach ($identifier['Comment'] as $comment):
|
||||||
|
$class = null;
|
||||||
|
if ($i++ % 2 == 0) {
|
||||||
|
$class = ' class="altrow"';
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr<?php echo $class;?>>
|
||||||
|
<td><?php echo $comment['id'];?></td>
|
||||||
|
<td><?php echo $comment['translation_id'];?></td>
|
||||||
|
<td><?php echo $comment['identifier_id'];?></td>
|
||||||
|
<td><?php echo $comment['user_id'];?></td>
|
||||||
|
<td><?php echo $comment['comment'];?></td>
|
||||||
|
<td><?php echo $comment['created'];?></td>
|
||||||
|
<td><?php echo $comment['modified'];?></td>
|
||||||
|
<td class="actions">
|
||||||
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'comments', 'action' => 'view', $comment['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Edit', true), array('controller' => 'comments', 'action' => 'edit', $comment['id'])); ?>
|
||||||
|
<?php echo ' | '. $this->Html->link(__('Delete', true), array('controller' => 'comments', 'action' => 'delete', $comment['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $comment['id'])); ?>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<?php endforeach; ?>
|
||||||
|
</table>
|
||||||
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Comment', true)), array('controller' => 'comments', 'action' => 'add', 'identifier_id' => $identifier['Identifier']['id']));?></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- /RELATED -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="related">
|
|
||||||
<h3><?php __('Related File Identifiers');?></h3>
|
|
||||||
<?php if (!empty($identifier['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 ($identifier['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'])); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
</table>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,22 +1,50 @@
|
|||||||
<div class="translationFiles form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('TranslationFile');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add Translation File'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Imported Translation Files', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Language', true)), array('controller' => 'languages', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Raw Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Raw Files', true)), array('controller' => 'raw_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Imported Translation File', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="importedTranslationFiles form">
|
||||||
|
<?php echo $this->Form->create('ImportedTranslationFile');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Imported Translation File', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
echo $this->Form->input('filename');
|
echo $this->Form->input('filename');
|
||||||
|
echo $this->Form->input('merged');
|
||||||
|
echo $this->Form->input('file_last_modified_date');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('action' => 'index'));?></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>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,24 +1,51 @@
|
|||||||
<div class="translationFiles form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('TranslationFile');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit Translation File'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Imported Translation Files', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Language', true)), array('controller' => 'languages', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Raw Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Raw Files', true)), array('controller' => 'raw_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Imported Translation File', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="importedTranslationFiles form">
|
||||||
|
<?php echo $this->Form->create('ImportedTranslationFile');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Imported Translation File # %s', true), $this->Form->value('ImportedTranslationFile.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('language_id');
|
echo $this->Form->input('language_id');
|
||||||
echo $this->Form->input('filename');
|
echo $this->Form->input('filename');
|
||||||
|
echo $this->Form->input('merged');
|
||||||
|
echo $this->Form->input('file_last_modified_date');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('TranslationFile.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('TranslationFile.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('action' => 'index'));?></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>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,91 +1,148 @@
|
|||||||
<div class="translationFiles view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Translation File');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
<?php echo $translationFile['TranslationFile']['id']; ?>
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Imported Translation Files', true); ?></h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Language'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
</ul>
|
||||||
<?php echo $this->Html->link($translationFile['Language']['name'], array('controller' => 'languages', 'action' => 'view', $translationFile['Language']['id'])); ?>
|
|
||||||
|
<h5>Languages</h5>
|
||||||
</dd>
|
<ul class="menu">
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Filename'); ?></dt>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Language', true)), array('controller' => 'languages', 'action' => 'add')); ?> </li>
|
||||||
<?php echo $translationFile['TranslationFile']['filename']; ?>
|
</ul>
|
||||||
|
|
||||||
</dd>
|
<h5>Raw Files</h5>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<ul class="menu">
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Raw Files', true)), array('controller' => 'raw_files', 'action' => 'index')); ?> </li>
|
||||||
<?php echo $translationFile['TranslationFile']['created']; ?>
|
</ul>
|
||||||
|
|
||||||
</dd>
|
<h5>File Identifiers</h5>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<ul class="menu">
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
<?php echo $translationFile['TranslationFile']['modified']; ?>
|
</ul>
|
||||||
|
</div>
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
<div class="grid_13">
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit Translation File', true), array('action' => 'edit', $translationFile['TranslationFile']['id'])); ?> </li>
|
<div class="box">
|
||||||
<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>
|
<div class="importedTranslationFiles view">
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('action' => 'index')); ?> </li>
|
<h2><?php __('Imported Translation File');?></h2>
|
||||||
<li><?php echo $this->Html->link(__('New Translation File', true), array('action' => 'add')); ?> </li>
|
<div class="block">
|
||||||
<li><?php echo $this->Html->link(__('List Languages', true), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
<div class="dl">
|
||||||
<li><?php echo $this->Html->link(__('New Language', true), array('controller' => 'languages', 'action' => 'add')); ?> </li>
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
<li><?php echo $this->Html->link(__('New File Identifier', true), array('controller' => 'file_identifiers', 'action' => 'add')); ?> </li>
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
</ul>
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['id']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Language'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $this->Html->link($importedTranslationFile['Language']['name'], array('controller' => 'languages', 'action' => 'view', $importedTranslationFile['Language']['id'])); ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Filename'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['filename']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Merged'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['merged']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('File Last Modified Date'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['file_last_modified_date']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['created']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['modified']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="related">
|
|
||||||
<h3><?php __('Related File Identifiers');?></h3>
|
<div class="box">
|
||||||
<?php if (!empty($translationFile['FileIdentifier'])):?>
|
<h2>
|
||||||
<table cellpadding = "0" cellspacing = "0">
|
<a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
|
||||||
<tr>
|
</h2>
|
||||||
<th><?php __('Id'); ?></th>
|
<div class="block" id="related-records">
|
||||||
<th><?php __('Translation File Id'); ?></th>
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('File Identifiers', true));?></h3>
|
||||||
|
<?php if (!empty($importedTranslationFile['FileIdentifier'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Imported Translation File Id'); ?></th>
|
||||||
<th><?php __('Command'); ?></th>
|
<th><?php __('Command'); ?></th>
|
||||||
<th><?php __('Translation Index'); ?></th>
|
<th><?php __('Translation Index'); ?></th>
|
||||||
<th><?php __('Identifier Id'); ?></th>
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
<th><?php __('Reference String'); ?></th>
|
<th><?php __('Arguments'); ?></th>
|
||||||
<th><?php __('Created'); ?></th>
|
<th><?php __('Created'); ?></th>
|
||||||
<th><?php __('Modified'); ?></th>
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($translationFile['FileIdentifier'] as $fileIdentifier):
|
foreach ($importedTranslationFile['FileIdentifier'] as $fileIdentifier):
|
||||||
$class = null;
|
$class = null;
|
||||||
if ($i++ % 2 == 0) {
|
if ($i++ % 2 == 0) {
|
||||||
$class = ' class="altrow"';
|
$class = ' class="altrow"';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr<?php echo $class;?>>
|
<tr<?php echo $class;?>>
|
||||||
<td><?php echo $fileIdentifier['id'];?></td>
|
<td><?php echo $fileIdentifier['id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['translation_file_id'];?></td>
|
<td><?php echo $fileIdentifier['imported_translation_file_id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['command'];?></td>
|
<td><?php echo $fileIdentifier['command'];?></td>
|
||||||
<td><?php echo $fileIdentifier['translation_index'];?></td>
|
<td><?php echo $fileIdentifier['translation_index'];?></td>
|
||||||
<td><?php echo $fileIdentifier['identifier_id'];?></td>
|
<td><?php echo $fileIdentifier['identifier_id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['reference_string'];?></td>
|
<td><?php echo $fileIdentifier['arguments'];?></td>
|
||||||
<td><?php echo $fileIdentifier['created'];?></td>
|
<td><?php echo $fileIdentifier['created'];?></td>
|
||||||
<td><?php echo $fileIdentifier['modified'];?></td>
|
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'file_identifiers', 'action' => 'view', $fileIdentifier['id'])); ?>
|
<?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>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="actions">
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('New File Identifier', true), array('controller' => 'file_identifiers', 'action' => 'add'));?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,122 +1,172 @@
|
|||||||
<div class="importedTranslationFiles view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Imported Translation File');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Imported Translation Files', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Languages</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Language', true)), array('controller' => 'languages', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Raw Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Raw Files', true)), array('controller' => 'raw_files', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>File Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('File Identifiers', true)), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="importedTranslationFiles view">
|
||||||
|
<h2><?php __('Imported Translation File');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $importedTranslationFile['ImportedTranslationFile']['id']; ?>
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Language'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Language'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($importedTranslationFile['Language']['name'], array('controller' => 'languages', 'action' => 'view', $importedTranslationFile['Language']['id'])); ?>
|
<?php echo $this->Html->link($importedTranslationFile['Language']['name'], array('controller' => 'languages', 'action' => 'view', $importedTranslationFile['Language']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Filename'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Filename'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $importedTranslationFile['ImportedTranslationFile']['filename']; ?>
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['filename']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Merged'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['merged']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('File Last Modified Date'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['file_last_modified_date']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $importedTranslationFile['ImportedTranslationFile']['created']; ?>
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $importedTranslationFile['ImportedTranslationFile']['modified']; ?>
|
<?php echo $importedTranslationFile['ImportedTranslationFile']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<h2>
|
||||||
|
<a href="#" id="toggle-related-records"><?php echo (__('Related', true)); ?></a>
|
||||||
|
</h2>
|
||||||
|
<div class="block" id="related-records">
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('Raw Files', true));?></h3>
|
||||||
|
<?php if (!empty($importedTranslationFile['RawFile'])):?>
|
||||||
|
<dl> <?php $i = 0; $class = ' class="altrow"';?>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Filename');?></div>
|
||||||
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['RawFile']['filename'];?>
|
||||||
|
</div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Size');?></div>
|
||||||
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $importedTranslationFile['RawFile']['size'];?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Modified');?></div>
|
||||||
<h3><?php __('Actions'); ?></h3>
|
<div class="dd<?php if ($i++ % 2 == 0) echo $class;?>">
|
||||||
<ul>
|
<?php echo $importedTranslationFile['RawFile']['modified'];?>
|
||||||
<li><?php echo $this->Html->link(__('List Translation Files', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Languages', true), array('controller' => 'languages', 'action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List File Identifiers', true), array('controller' => 'file_identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="related">
|
</dl>
|
||||||
<h3><?php __('Related File Identifiers');?></h3>
|
<?php endif; ?>
|
||||||
<?php if (!empty($importedTranslationFile['FileIdentifier'])):?>
|
<div class="actions">
|
||||||
<table cellpadding = "0" cellspacing = "0">
|
<ul>
|
||||||
<tr>
|
<li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Raw File', true)), array('controller' => 'raw_files', 'action' => 'edit', $importedTranslationFile['RawFile']['filename'])); ?></li>
|
||||||
<th><?php __('Id'); ?></th>
|
</ul>
|
||||||
<th><?php __('Translation File Id'); ?></th>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="related">
|
||||||
|
<h3><?php printf(__('Related %s', true), __('File Identifiers', true));?></h3>
|
||||||
|
<?php if (!empty($importedTranslationFile['FileIdentifier'])):?>
|
||||||
|
<table cellpadding = "0" cellspacing = "0">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th><?php __('Id'); ?></th>
|
||||||
|
<th><?php __('Imported Translation File Id'); ?></th>
|
||||||
<th><?php __('Command'); ?></th>
|
<th><?php __('Command'); ?></th>
|
||||||
<th><?php __('Translation Index'); ?></th>
|
<th><?php __('Translation Index'); ?></th>
|
||||||
<th><?php __('Identifier Id'); ?></th>
|
<th><?php __('Identifier Id'); ?></th>
|
||||||
<th><?php __('Reference String'); ?></th>
|
<th><?php __('Arguments'); ?></th>
|
||||||
<th><?php __('Created'); ?></th>
|
<th><?php __('Created'); ?></th>
|
||||||
<th><?php __('Modified'); ?></th>
|
<th class="actions"><?php __('Actions');?></th>
|
||||||
<th class="actions"><?php __('Actions');?></th>
|
</tr>
|
||||||
</tr>
|
</thead>
|
||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
foreach ($importedTranslationFile['FileIdentifier'] as $fileIdentifier):
|
foreach ($importedTranslationFile['FileIdentifier'] as $fileIdentifier):
|
||||||
$class = null;
|
$class = null;
|
||||||
if ($i++ % 2 == 0) {
|
if ($i++ % 2 == 0) {
|
||||||
$class = ' class="altrow"';
|
$class = ' class="altrow"';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<tr<?php echo $class;?>>
|
<tr<?php echo $class;?>>
|
||||||
<td><?php echo $fileIdentifier['id'];?></td>
|
<td><?php echo $fileIdentifier['id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['imported_translation_file_id'];?></td>
|
<td><?php echo $fileIdentifier['imported_translation_file_id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['command'];?></td>
|
<td><?php echo $fileIdentifier['command'];?></td>
|
||||||
<td><?php echo $fileIdentifier['translation_index'];?></td>
|
<td><?php echo $fileIdentifier['translation_index'];?></td>
|
||||||
<td><?php echo $fileIdentifier['identifier_id'];?></td>
|
<td><?php echo $fileIdentifier['identifier_id'];?></td>
|
||||||
<td><?php echo $fileIdentifier['reference_string'];?></td>
|
<td><?php echo $fileIdentifier['arguments'];?></td>
|
||||||
<td><?php echo $fileIdentifier['created'];?></td>
|
<td><?php echo $fileIdentifier['created'];?></td>
|
||||||
<td><?php echo $fileIdentifier['modified'];?></td>
|
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'file_identifiers', 'action' => 'view', $fileIdentifier['id'])); ?>
|
<?php echo $this->Html->link(__('View', true), array('controller' => 'file_identifiers', 'action' => 'view', $fileIdentifier['id'])); ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endforeach; ?>
|
<?php endforeach; ?>
|
||||||
</table>
|
</table>
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
|
|
||||||
|
<div class="actions">
|
||||||
|
<ul>
|
||||||
|
<li></li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!--<div class="related">
|
|
||||||
<h3><?php __('Related Raw Files');?></h3>
|
|
||||||
<?php if (!empty($importedTranslationFile['RawFile'])):?>
|
|
||||||
<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 ($importedTranslationFile['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['imported_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'])); ?>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<?php
|
|
||||||
endforeach; ?>
|
|
||||||
</table>
|
|
||||||
<?php endif; ?>
|
|
||||||
</div>
|
</div>
|
||||||
-->
|
<div class="clear"></div>
|
||||||
|
@ -1,43 +1,48 @@
|
|||||||
<div class="grid_4">
|
<div class="grid_3">
|
||||||
<div class="box">
|
<div class="box menubox">
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#" id="toggle-admin-actions">Actions</a>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
<div class="block" id="admin-actions">
|
<div class="block" id="admin-actions">
|
||||||
<h5>Languages</h5>
|
<h5><?php echo __('Languages', true); ?></h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index'));?></li>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index'));?></li> </ul>
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h5>Identifiers</h5>
|
<h5>Identifiers</h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Identifier', true)), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
</ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Translation Files</h5>
|
<h5>Translation Files</h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||||
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation File', true)), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid_12">
|
<div class="grid_13">
|
||||||
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Language', true)); ?></h2>
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Language', true)); ?></h2>
|
||||||
|
|
||||||
<div class="languages form">
|
<div class="languages form">
|
||||||
<?php echo $this->Form->create('Language');?>
|
<?php echo $this->Form->create('Language');?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php printf(__('Language Record', true)); ?></legend>
|
<legend><?php printf(__('Language', true)); ?></legend>
|
||||||
<?php
|
<?php
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
echo $this->Form->input('code');
|
echo $this->Form->input('code');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<div class="box">
|
||||||
</div>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -1,45 +1,49 @@
|
|||||||
<div class="grid_4">
|
<div class="grid_3">
|
||||||
<div class="box">
|
<div class="box menubox">
|
||||||
<h2>
|
<h2>
|
||||||
<a href="#" id="toggle-admin-actions">Actions</a>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
</h2>
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
<div class="block" id="admin-actions">
|
<div class="block" id="admin-actions">
|
||||||
<h5>Languages</h5>
|
<h5><?php echo __('Languages', true); ?></h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Language.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Language.id'))); ?></li>
|
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Language.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Language.id'))); ?></li> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index'));?></li> </ul>
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Languages', true)), array('action' => 'index'));?></li>
|
|
||||||
</ul>
|
|
||||||
|
|
||||||
<h5>Identifiers</h5>
|
<h5>Identifiers</h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Identifier', true)), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
</ul>
|
||||||
|
|
||||||
|
<h5>Imported Translation Files</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Imported Translation Files', true)), array('controller' => 'imported_translation_files', 'action' => 'index')); ?> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h5>Translation Files</h5>
|
<h5>Translation Files</h5>
|
||||||
<ul class="menu">
|
<ul class="menu">
|
||||||
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translation Files', true)), array('controller' => 'translation_files', 'action' => 'index')); ?> </li>
|
||||||
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation File', true)), array('controller' => 'translation_files', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="grid_12">
|
<div class="grid_13">
|
||||||
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Language', true)); ?></h2>
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Language', true)); ?></h2>
|
||||||
|
|
||||||
<div class="languages form">
|
<div class="languages form">
|
||||||
<?php echo $this->Form->create('Language');?>
|
<?php echo $this->Form->create('Language');?>
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend><?php printf(__('Language Record', true)); ?></legend>
|
<legend><?php printf(__('Language # %s', true), $this->Form->value('Language.id')); ?></legend>
|
||||||
<?php
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
echo $this->Form->input('code');
|
echo $this->Form->input('code');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<div class="box">
|
||||||
</div>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div> </div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -1,25 +1,129 @@
|
|||||||
<div class="translations form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Translation');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Add Translation'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
echo $this->Form->input('identifier_id');
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Translations', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
|
||||||
|
<h2 id="page-heading"><?php printf(__('Add %s', true), __('Translation', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="translations form">
|
||||||
|
<?php echo $this->Form->create('Translation');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Translation', true)); ?></legend>
|
||||||
|
<?php
|
||||||
|
// echo ($identifiers[$identifier['Identifier']['id']
|
||||||
|
echo $this->Form->hidden('identifier_id', array('default' => $identifier['Identifier']['id']));
|
||||||
echo $this->Form->input('translation_text');
|
echo $this->Form->input('translation_text');
|
||||||
echo $this->Form->input('user_id');
|
// TODO: change user_id for authorized user
|
||||||
|
echo $this->Form->hidden('user_id', array('default' => 1));
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<div class="box">
|
||||||
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="box">
|
||||||
|
<div class="identifiers view">
|
||||||
|
<h2><?php __('Identifier');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['id']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Language'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $this->Html->link($identifier['Language']['name'], array('controller' => 'languages', 'action' => 'view', $identifier['Language']['id'])); ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translation Index'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['translation_index']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['identifier']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['arguments']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['reference_string']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['translated']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['created']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['modified']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,25 +1,50 @@
|
|||||||
<div class="translations form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Translation');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add Translation'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Translations', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('User', true)), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Translation', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="translations form">
|
||||||
|
<?php echo $this->Form->create('Translation');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Translation', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
echo $this->Form->input('translation_text');
|
echo $this->Form->input('translation_text');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,27 +1,51 @@
|
|||||||
<div class="translations form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Translation');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit Translation'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Translations', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Translation.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Translation.id'))); ?></li> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('User', true)), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Translation', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="translations form">
|
||||||
|
<?php echo $this->Form->create('Translation');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Translation # %s', true), $this->Form->value('Translation.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id');
|
||||||
echo $this->Form->input('translation_text');
|
echo $this->Form->input('translation_text');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Translation.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Translation.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Identifier', true), array('controller' => 'identifiers', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,28 +1,121 @@
|
|||||||
<div class="translations form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Translation');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Edit Translation'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Translations', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Translation.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Translation.id'))); ?></li> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Identifiers</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Identifiers', true)), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Edit %s', true), __('Translation', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="translations form">
|
||||||
|
<?php echo $this->Form->create('Translation');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Translation # %s', true), $this->Form->value('Translation.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('identifier_id');
|
echo $this->Form->input('identifier_id', array('type' => 'text', 'name'=>'buzu', 'value'=>$identifiers[$this->Form->value('Translation.identifier_id')], 'readonly' => 'readonly'));
|
||||||
|
echo $this->Form->hidden('identifier_id', array('default' => $this->Form->value('Translation.identifier_id')));
|
||||||
echo $this->Form->input('translation_text');
|
echo $this->Form->input('translation_text');
|
||||||
echo $this->Form->input('user_id');
|
// TODO: change user_id for authorized user
|
||||||
|
echo $this->Form->hidden('user_id', array('default' => 1));
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<div class="box">
|
||||||
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="identifiers view">
|
||||||
|
<h2><?php __('Identifier');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['id']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Language'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $this->Html->link($identifier['Language']['name'], array('controller' => 'languages', 'action' => 'view', $identifier['Language']['id'])); ?>
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Identifier'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['identifier']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Arguments'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['arguments']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Reference String'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['reference_string']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Translated'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['translated']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['created']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
|
<?php echo $identifier['Identifier']['modified']; ?>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Translation.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Translation.id'))); ?></li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('action' => 'index'));?></li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Identifiers', true), array('controller' => 'identifiers', 'action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><br></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,21 +1,43 @@
|
|||||||
<div class="users form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('User');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Add User'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Users', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Add %s', true), __('User', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="users form">
|
||||||
|
<?php echo $this->Form->create('User');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('User', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,21 +1,43 @@
|
|||||||
<div class="users form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('User');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add User'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Users', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('User', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="users form">
|
||||||
|
<?php echo $this->Form->create('User');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('User', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,23 +1,44 @@
|
|||||||
<div class="users form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('User');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit User'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Users', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('User', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="users form">
|
||||||
|
<?php echo $this->Form->create('User');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('User # %s', true), $this->Form->value('User.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,23 +1,44 @@
|
|||||||
<div class="users form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('User');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Edit User'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Users', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Votes</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Edit %s', true), __('User', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="users form">
|
||||||
|
<?php echo $this->Form->create('User');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('User # %s', true), $this->Form->value('User.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('name');
|
echo $this->Form->input('name');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('User.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('User.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('controller' => 'votes', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('controller' => 'votes', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,22 +1,42 @@
|
|||||||
<div class="votes form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Vote');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Add Vote'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Add %s', true), __('Vote', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="votes form">
|
||||||
|
<?php echo $this->Form->create('Vote');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Vote', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('translation_id');
|
echo $this->Form->input('translation_id');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,22 +1,44 @@
|
|||||||
<div class="votes form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Vote');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Add Vote'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('User', true)), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Add %s', true), __('Vote', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="votes form">
|
||||||
|
<?php echo $this->Form->create('Vote');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Vote', true)); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('translation_id');
|
echo $this->Form->input('translation_id');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,24 +1,45 @@
|
|||||||
<div class="votes form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Vote');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Admin Edit Vote'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Vote.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Vote.id'))); ?></li> <li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('User', true)), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Admin Edit %s', true), __('Vote', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="votes form">
|
||||||
|
<?php echo $this->Form->create('Vote');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Vote # %s', true), $this->Form->value('Vote.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('translation_id');
|
echo $this->Form->input('translation_id');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Vote.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Vote.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,43 +1,79 @@
|
|||||||
<div class="votes view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Vote');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Vote', true)), array('action' => 'edit', $vote['Vote']['id'])); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('Delete %s', true), __('Vote', true)), array('action' => 'delete', $vote['Vote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vote['Vote']['id'])); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Translation', true)), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('User', true)), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="votes view">
|
||||||
|
<h2><?php __('Vote');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['id']; ?>
|
<?php echo $vote['Vote']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('User'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['created']; ?>
|
<?php echo $vote['Vote']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['modified']; ?>
|
<?php echo $vote['Vote']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit Vote', true), array('action' => 'edit', $vote['Vote']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('Delete Vote', true), array('action' => 'delete', $vote['Vote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vote['Vote']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,24 +1,43 @@
|
|||||||
<div class="votes form">
|
<div class="grid_3">
|
||||||
<?php echo $this->Form->create('Vote');?>
|
<div class="box menubox">
|
||||||
<fieldset>
|
<h2>
|
||||||
<legend><?php __('Edit Vote'); ?></legend>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<?php
|
</h2>
|
||||||
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index'));?></li> </ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
<h2 id="page-heading"><?php printf(__('Edit %s', true), __('Vote', true)); ?></h2>
|
||||||
|
|
||||||
|
<div class="votes form">
|
||||||
|
<?php echo $this->Form->create('Vote');?>
|
||||||
|
<fieldset>
|
||||||
|
<legend><?php printf(__('Vote # %s', true), $this->Form->value('Vote.id')); ?></legend>
|
||||||
|
<?php
|
||||||
echo $this->Form->input('id');
|
echo $this->Form->input('id');
|
||||||
echo $this->Form->input('translation_id');
|
echo $this->Form->input('translation_id');
|
||||||
echo $this->Form->input('user_id');
|
echo $this->Form->input('user_id');
|
||||||
?>
|
?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<?php echo $this->Form->end(__('Submit', true));?>
|
<?php echo $this->Form->end(__('Submit', true));?>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
|
|
||||||
<li><?php echo $this->Html->link(__('Delete', true), array('action' => 'delete', $this->Form->value('Vote.id')), null, sprintf(__('Are you sure you want to delete # %s?', true), $this->Form->value('Vote.id'))); ?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index'));?></li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
@ -1,43 +1,76 @@
|
|||||||
<div class="votes view">
|
<div class="grid_3">
|
||||||
<h2><?php __('Vote');?></h2>
|
<div class="box menubox"> <h2>
|
||||||
<dl><?php $i = 0; $class = ' class="altrow"';?>
|
<a href="#" id="toggle-admin-actions">Actions</a>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
|
</h2>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="inbox">
|
||||||
|
<div class="block" id="admin-actions">
|
||||||
|
<h5><?php echo __('Votes', true); ?></h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('Edit %s', true), __('Vote', true)), array('action' => 'edit', $vote['Vote']['id'])); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Votes', true)), array('action' => 'index')); ?> </li>
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('New %s', true), __('Vote', true)), array('action' => 'add')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Translations</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Translations', true)), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
|
<h5>Users</h5>
|
||||||
|
<ul class="menu">
|
||||||
|
<li><?php echo $this->Html->link(sprintf(__('List %s', true), __('Users', true)), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid_13">
|
||||||
|
|
||||||
|
<div class="box">
|
||||||
|
<div class="votes view">
|
||||||
|
<h2><?php __('Vote');?></h2>
|
||||||
|
<div class="block">
|
||||||
|
<div class="dl">
|
||||||
|
<?php $i = 1; $class = ' altrow';?>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Id'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['id']; ?>
|
<?php echo $vote['Vote']['id']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Translation'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('Translation'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
<?php echo $this->Html->link($vote['Translation']['translation_text'], array('controller' => 'translations', 'action' => 'view', $vote['Translation']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('User'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i % 2 == 0) echo $class;?>"><?php __('User'); ?></div>
|
||||||
|
<div class="dd<?php if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
<?php echo $this->Html->link($vote['User']['name'], array('controller' => 'users', 'action' => 'view', $vote['User']['id'])); ?>
|
||||||
|
</div>
|
||||||
</dd>
|
<?php $i++; ?>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
|
<div style="clear: both"></div>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Created'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['created']; ?>
|
<?php echo $vote['Vote']['created']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Modified'); ?></dt>
|
<?php $i++; ?>
|
||||||
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
|
<div style="clear: both"></div>
|
||||||
|
<div class="dt<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>"><?php __('Modified'); ?></div>
|
||||||
|
<div class="dd<?php if ($i == 1) echo " dh"; else if ($i % 2 == 0) echo $class;?>">
|
||||||
<?php echo $vote['Vote']['modified']; ?>
|
<?php echo $vote['Vote']['modified']; ?>
|
||||||
|
|
||||||
</dd>
|
</div>
|
||||||
</dl>
|
<?php $i++; ?>
|
||||||
|
<div style="clear: both"></div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="actions">
|
|
||||||
<h3><?php __('Actions'); ?></h3>
|
|
||||||
<ul>
|
|
||||||
<li><?php echo $this->Html->link(__('Edit Vote', true), array('action' => 'edit', $vote['Vote']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('Delete Vote', true), array('action' => 'delete', $vote['Vote']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $vote['Vote']['id'])); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Votes', true), array('action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Vote', true), array('action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Translations', true), array('controller' => 'translations', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New Translation', true), array('controller' => 'translations', 'action' => 'add')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
|
|
||||||
<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
|
|
||||||
</ul>
|
|
||||||
</div>
|
</div>
|
||||||
|
<div class="clear"></div>
|
||||||
|
Loading…
Reference in New Issue