Fixing output of 'Actions' in bake templates. Now outputs a __() call.

This commit is contained in:
Mark Story 2010-01-13 00:14:57 -05:00
parent 2de9639091
commit 53f0771a48
3 changed files with 3 additions and 3 deletions

View file

@ -43,7 +43,7 @@
?>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<?php if ($action != 'add'):?>
<li><?php echo "<?php echo \$this->Html->link(__('Delete', true), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, sprintf(__('Are you sure you want to delete # %s?', true), \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>

View file

@ -77,7 +77,7 @@
</div>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<li><?php echo "<?php echo \$this->Html->link(sprintf(__('New %s', true), __('{$singularHumanName}', true)), array('action' => 'add')); ?>";?></li>
<?php

View file

@ -42,7 +42,7 @@ foreach ($fields as $field) {
</dl>
</div>
<div class="actions">
<h3><?php __('Actions'); ?></h3>
<h3><?php echo "<?php __('Actions'); ?>"; ?></h3>
<ul>
<?php
echo "\t\t<li><?php echo \$this->Html->link(sprintf(__('Edit %s', true), __('{$singularHumanName}', true)), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?> </li>\n";