diff --git a/src/Template/Bake/default/views/form.ctp b/src/Template/Bake/default/views/form.ctp index 1b03b1f0e3e..6bdd1fe1f8c 100644 --- a/src/Template/Bake/default/views/form.ctp +++ b/src/Template/Bake/default/views/form.ctp @@ -13,8 +13,30 @@ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ use Cake\Utility\Inflector; + ?> -
= "= \$this->Paginator->sort('{$field}') ?>"; ?> | += "= \$this->Paginator->sort('{$field}') ?>"; ?> | -= "= __('Actions') ?>"; ?> | += "= __('Actions') ?>"; ?> | |
---|---|---|---|---|
\n\t\t\t= \${$singularVar}->has('{$details['property']}') ? \$this->Html->link(\${$singularVar}->{$details['property']}->{$details['displayField']}, ['controller' => '{$details['controller']}', 'action' => 'view', \${$singularVar}->{$details['property']}->{$details['primaryKey'][0]}]) : '' ?>\n\t\t | \n"; + echo "\t\t\t\n\t\t\t\t= \${$singularVar}->has('{$details['property']}') ? \$this->Html->link(\${$singularVar}->{$details['property']}->{$details['displayField']}, ['controller' => '{$details['controller']}', 'action' => 'view', \${$singularVar}->{$details['property']}->{$details['primaryKey'][0]}]) : '' ?>\n\t\t\t | \n"; break; } } } if ($isKey !== true) { - echo "\t\t= h(\${$singularVar}->{$field}) ?> | \n"; + echo "\t\t\t= h(\${$singularVar}->{$field}) ?> | \n"; } } $pk = "\${$singularVar}->{$primaryKey[0]}"; - echo "\t\t\n"; - echo "\t\t\t= \$this->Html->link(__('View'), ['action' => 'view', {$pk}]) ?>\n"; - echo "\t\t\t= \$this->Html->link(__('Edit'), ['action' => 'edit', {$pk}]) ?>\n"; - echo "\t\t\t= \$this->Form->postLink(__('Delete'), ['action' => 'delete', {$pk}], ['confirm' => __('Are you sure you want to delete # {0}?', {$pk})]) ?>\n"; - echo "\t\t | \n"; - echo "\t\n"; + echo "\t\t\t\t= \$this->Html->link(__('View'), ['action' => 'view', {$pk}]) ?>\n"; + echo "\t\t\t\t= \$this->Html->link(__('Edit'), ['action' => 'edit', {$pk}]) ?>\n"; + echo "\t\t\t\t= \$this->Form->postLink(__('Delete'), ['action' => 'delete', {$pk}], ['confirm' => __('Are you sure you want to delete # {0}?', {$pk})]) ?>\n"; + echo "\t\t\t | \n"; + echo "\t\t\n"; echo "\t\n"; ?> +
= "= \$this->Paginator->counter() ?>"; ?>
-= "= \$this->Paginator->counter() ?>"; ?>
+