소스 검색

Merge branch 'develop' of https://gitea.laclic.fr/Laclic/SovBundle into develop

feature/ticket
Fab 3 년 전
부모
커밋
19145c9d68
2개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. +0
    -2
      Controller/User/UserAdminController.php
  2. +7
    -5
      Resources/views/adminlte/block/breadcrumb.html.twig

+ 0
- 2
Controller/User/UserAdminController.php 파일 보기

@@ -13,8 +13,6 @@ use Lc\SovBundle\Translation\TranslatorAdmin;
use Symfony\Component\HttpFoundation\RequestStack;
use Symfony\Component\HttpFoundation\Session\SessionInterface;

use function Symfony\Component\Translation\t;

abstract class UserAdminController extends AbstractAdminController
{
protected $rolesDefinition;

+ 7
- 5
Resources/views/adminlte/block/breadcrumb.html.twig 파일 보기

@@ -1,16 +1,18 @@
{% if ea.entity.instance is not null %}
{% if ea.entity.instance is not null and ea.entity.instance.parent is defined %}
<nav aria-label="breadcrumb">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="{{ ea_url().unset('entityId').generateUrl() }}">Index</a></li>

{% set parent = ea.entity.instance.parent %}
{% if parent is not null %}
<li class="breadcrumb-item"><a href="{{ ea_url({ entityId: parent.id }).generateUrl() }}">{{ parent.title }}</a></li>
<li class="breadcrumb-item"><a
href="{{ ea_url({ entityId: parent.id }).generateUrl() }}">{{ parent.title }}</a></li>
{% set grand_parent = parent.parent %}
{% if grand_parent is not null %}
<li class="breadcrumb-item"><a href="{{ ea_url({ entityId: grand_parent.id }).generateUrl() }}">{{ grand_parent.title }}</a></li>
<li class="breadcrumb-item"><a
href="{{ ea_url({ entityId: grand_parent.id }).generateUrl() }}">{{ grand_parent.title }}</a>
</li>
{% endif %}


{% endif %}
<li class="breadcrumb-item active" aria-current="page">{{ ea.entity.instance.title }}</li>
</ol>

Loading…
취소
저장