소스 검색

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

feature/ticket
Fab 3 년 전
부모
커밋
59bf174ecc
3개의 변경된 파일35개의 추가작업 그리고 0개의 파일을 삭제
  1. +8
    -0
      Repository/User/UserRepository.php
  2. +15
    -0
      Resources/views/adminlte/macro/infobox-progressbar.html.twig
  3. +12
    -0
      Resources/views/adminlte/macro/infobox.html.twig

+ 8
- 0
Repository/User/UserRepository.php 파일 보기

@@ -35,6 +35,14 @@ class UserRepository extends AbstractRepository implements PasswordUpgraderInter
$this->_em->flush();
}

public function findByRole($role) {
return $this->createQueryBuilder('u')
->andWhere('u.roles LIKE :role')
->setParameter('role', '%'.$role.'%')
->getQuery()
->getResult();
}

// /**
// * @return User[] Returns an array of User objects
// */

+ 15
- 0
Resources/views/adminlte/macro/infobox-progressbar.html.twig 파일 보기

@@ -0,0 +1,15 @@
{% macro infoboxprogressbar(title, number, color, icon, percentage, description) %}
<div class="info-box bg-{{ color }}">
<span class="info-box-icon"><i class="{{ icon }}"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ title }}</span>
<span class="info-box-number">{{ number }}</span>
<!-- The progress section is optional -->
<div class="progress">
<div class="progress-bar" style="width: {{ percentage }}%"></div>
</div>
<span class="progress-description">{{ description }}</span>
</div>
<!-- /.info-box-content -->
</div>
{% endmacro %}

+ 12
- 0
Resources/views/adminlte/macro/infobox.html.twig 파일 보기

@@ -0,0 +1,12 @@
{% macro infobox(title, number, color, icon) %}
<div class="info-box">
<!-- Apply any bg-* class to to the icon to color it -->
<span class="info-box-icon bg-{{ color }}"><i class="{{ icon }}"></i></span>
<div class="info-box-content">
<span class="info-box-text">{{ title }}</span>
<span class="info-box-number">{{ number }}</span>
</div>
<!-- /.info-box-content -->
</div>
<!-- /.info-box -->
{% endmacro %}

Loading…
취소
저장