@@ -12,10 +12,10 @@ |
||
12 | 12 | <?php foreach (reset($rows) as $name => $column): ?> |
13 | 13 | <th class="format <?= $column->get('class').($search->getSort() === $name ? ' is-sorted' : '') ?>"> |
14 | 14 | <a href="<?= $app->getRouteUrl('list', ['entity' => $entity->getName()], [ |
15 | - 'query' => isset($search) ? $search->getQuery() : null, |
|
16 | - 'sort' => $name, |
|
17 | - 'direction' => ($search->getSort() === $name) ? ($search->getDirection() === 'ASC' ? 'DESC' : 'ASC') : 'ASC' |
|
18 | - ]) ?>"> |
|
15 | + 'query' => isset($search) ? $search->getQuery() : null, |
|
16 | + 'sort' => $name, |
|
17 | + 'direction' => ($search->getSort() === $name) ? ($search->getDirection() === 'ASC' ? 'DESC' : 'ASC') : 'ASC' |
|
18 | + ]) ?>"> |
|
19 | 19 | <?= $column->label(); ?> |
20 | 20 | </a> |
21 | 21 | </th> |