+ = $this->Text->autoParagraph(h($article->body)); ?> ++
diff --git a/src/View/Helper/BakeHelper.php b/src/View/Helper/BakeHelper.php index 2cdf6220..431405b3 100644 --- a/src/View/Helper/BakeHelper.php +++ b/src/View/Helper/BakeHelper.php @@ -9,9 +9,9 @@ use Cake\Core\Configure; use Cake\Core\ConventionsTrait; use Cake\Database\Schema\TableSchema; +use Cake\Database\Type\EnumType; use Cake\Database\TypeFactory; use Cake\Datasource\SchemaInterface; -use Cake\Database\Type\EnumType; use Cake\ORM\Table; use Cake\Utility\Inflector; use Cake\View\Helper; diff --git a/tests/comparisons/Template/testBakeIndexWithEnumNoLabel.php b/tests/comparisons/Template/testBakeIndexWithEnumNoLabel.php index e69de29b..8f3ee6d1 100644 --- a/tests/comparisons/Template/testBakeIndexWithEnumNoLabel.php +++ b/tests/comparisons/Template/testBakeIndexWithEnumNoLabel.php @@ -0,0 +1,48 @@ + $articles + */ +?> +
= $this->Paginator->sort('id') ?> | += $this->Paginator->sort('author_id') ?> | += $this->Paginator->sort('title') ?> | += $this->Paginator->sort('published') ?> | += __('Actions') ?> | +
---|---|---|---|---|
= $this->Number->format($article->id) ?> | += $article->hasValue('author') ? $this->Html->link($article->author->name, ['controller' => 'Authors', 'action' => 'view', $article->author->id]) : '' ?> | += h($article->title) ?> | += $article->published === null ? '' : h($article->published->value) ?> | ++ = $this->Html->link(__('View'), ['action' => 'view', $article->id]) ?> + = $this->Html->link(__('Edit'), ['action' => 'edit', $article->id]) ?> + = $this->Form->postLink(__('Delete'), ['action' => 'delete', $article->id], ['confirm' => __('Are you sure you want to delete # {0}?', $article->id)]) ?> + | +
= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?>
+= $this->Paginator->sort('id') ?> | += $this->Paginator->sort('username') ?> | += $this->Paginator->sort('status') ?> | += $this->Paginator->sort('created') ?> | += $this->Paginator->sort('updated') ?> | += __('Actions') ?> | +
---|---|---|---|---|---|
= $this->Number->format($bakeUser->id) ?> | += h($bakeUser->username) ?> | += $bakeUser->status === null ? '' : h($bakeUser->status->label()) ?> | += h($bakeUser->created) ?> | += h($bakeUser->updated) ?> | ++ = $this->Html->link(__('View'), ['action' => 'view', $bakeUser->id]) ?> + = $this->Html->link(__('Edit'), ['action' => 'edit', $bakeUser->id]) ?> + = $this->Form->postLink(__('Delete'), ['action' => 'delete', $bakeUser->id], ['confirm' => __('Are you sure you want to delete # {0}?', $bakeUser->id)]) ?> + | +
= $this->Paginator->counter(__('Page {{page}} of {{pages}}, showing {{current}} record(s) out of {{count}} total')) ?>
+= __('Author') ?> | += $article->hasValue('author') ? $this->Html->link($article->author->name, ['controller' => 'Authors', 'action' => 'view', $article->author->id]) : '' ?> | +
---|---|
= __('Title') ?> | += h($article->title) ?> | +
= __('Id') ?> | += $this->Number->format($article->id) ?> | +
= __('Published') ?> | += $article->published === null ? '' : h($article->published->value) ?> | +
+ = $this->Text->autoParagraph(h($article->body)); ?> ++