File tree Expand file tree Collapse file tree
src/Template/Bake/Template Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -37,14 +37,17 @@ $fields = collection($fields)
3737 <div class="box-body table-responsive no-padding">
3838 <table class="table table-hover">
3939 <tr>
40- <% foreach ($fields as $field): %>
40+ <% foreach ($fields as $field):
41+ if (!in_array($field, ['created', 'modified', 'updated'])) :%>
4142 <th><?= $ this ->Paginator ->sort ('<%= $field %> ' ) ?> </th>
43+ <% endif; %>
4244<% endforeach; %>
4345 <th><?= __ ('Actions ' ) ?> </th>
4446 </tr>
4547 <?php foreach ($ <%= $ pluralVar %> as $ <%= $ singularVar %>): ?>
4648 <tr>
4749<% foreach ($fields as $field) {
50+ if (!in_array($field, ['created', 'modified', 'updated'])) {
4851 $isKey = false;
4952 if (!empty($associations['BelongsTo'])) {
5053 foreach ($associations['BelongsTo'] as $alias => $details) {
@@ -69,6 +72,7 @@ $fields = collection($fields)
6972<%
7073 }
7174 }
75+ }
7276 }
7377 $pk = '$' . $singularVar . '->' . $primaryKey[0];
7478%>
You can’t perform that action at this time.
0 commit comments