Skip to content

Commit

Permalink
Merge pull request #23 from vitorpc/2.0
Browse files Browse the repository at this point in the history
2.0 Corrigido o link de exclusão e renomeada a pasta locale
  • Loading branch information
jrbasso committed Apr 24, 2012
2 parents 49ada2c + e3d8077 commit 0a46977
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Console/Templates/default/views/form.ctp
Expand Up @@ -54,7 +54,7 @@ require_once dirname(dirname(__FILE__)) . DS . 'Inflexao.php';
<ul>

<?php if (strpos($action, 'add') === false): ?>
<li><?php echo "<?php echo \$this->Form->postLink(__('Excluir'), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, __(Você tem certeza que deseja excluir o # %s?', \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>
<li><?php echo "<?php echo \$this->Form->postLink(__('Excluir'), array('action' => 'delete', \$this->Form->value('{$modelClass}.{$primaryKey}')), null, __('Você tem certeza que deseja excluir o # %s?', \$this->Form->value('{$modelClass}.{$primaryKey}'))); ?>";?></li>
<?php endif;?>
<li><?php echo "<?php echo \$this->Html->link(__('Listar " . Inflexao::acentos($pluralHumanName) . "'), array('action' => 'index'));?>";?></li>
<?php
Expand All @@ -70,4 +70,4 @@ require_once dirname(dirname(__FILE__)) . DS . 'Inflexao.php';
}
?>
</ul>
</div>
</div>
6 changes: 2 additions & 4 deletions Console/Templates/default/views/index.ctp
Expand Up @@ -27,10 +27,8 @@ require_once dirname(dirname(__FILE__)) . DS . 'Inflexao.php';
<th class="actions"><?php echo "<?php echo __('Ações');?>";?></th>
</tr>
<?php
echo "<?php
foreach (\${$pluralVar} as \${$singularVar}): ?>\n";
echo "<?php foreach (\${$pluralVar} as \${$singularVar}): ?>\n";
echo "\t<tr>\n";
echo "\t<tr<?php echo \$class;?>>\n";
foreach ($fields as $field) {
$isKey = false;
if (!empty($associations['belongsTo'])) {
Expand Down Expand Up @@ -92,4 +90,4 @@ require_once dirname(dirname(__FILE__)) . DS . 'Inflexao.php';
}
?>
</ul>
</div>
</div>
File renamed without changes.
File renamed without changes.

0 comments on commit 0a46977

Please sign in to comment.