backports murph-skeleton
This commit is contained in:
parent
ec1eee355a
commit
939518ce03
|
@ -22,7 +22,9 @@ class NavigationAdminController extends AdminController
|
||||||
*/
|
*/
|
||||||
public function index(int $page = 1, RepositoryQuery $query, Request $request): Response
|
public function index(int $page = 1, RepositoryQuery $query, Request $request): Response
|
||||||
{
|
{
|
||||||
$pager = $query->paginate($page);
|
$pager = $query
|
||||||
|
->orderBy('.label, .domain')
|
||||||
|
->paginate($page);
|
||||||
|
|
||||||
return $this->render('@Core/site/navigation_admin/index.html.twig', [
|
return $this->render('@Core/site/navigation_admin/index.html.twig', [
|
||||||
'pager' => $pager,
|
'pager' => $pager,
|
||||||
|
|
|
@ -55,7 +55,9 @@ class TreeAdminController extends AdminController
|
||||||
MenuFactory $menuFactory,
|
MenuFactory $menuFactory,
|
||||||
Session $session
|
Session $session
|
||||||
): Response {
|
): Response {
|
||||||
$navigations = $navigationQuery->create()->find();
|
$navigations = $navigationQuery->create()
|
||||||
|
->orderBy('.label, .domain')
|
||||||
|
->find();
|
||||||
|
|
||||||
$session->set('site_tree_last_navigation', $navigation->getId());
|
$session->set('site_tree_last_navigation', $navigation->getId());
|
||||||
|
|
||||||
|
|
|
@ -53,6 +53,7 @@
|
||||||
<td class="col-5 miw-200">
|
<td class="col-5 miw-200">
|
||||||
<a href="" class="btn btn-sm btn-light">
|
<a href="" class="btn btn-sm btn-light">
|
||||||
{{ item.domain }}
|
{{ item.domain }}
|
||||||
|
({{ item.locale }})
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
<td class="col-2 miw-100 text-right">
|
<td class="col-2 miw-100 text-right">
|
||||||
|
|
Loading…
Reference in a new issue