logo et sidebar

This commit is contained in:
afornerot 2020-10-05 11:40:29 +02:00
parent 376103170f
commit 01ce3c3090
4 changed files with 5 additions and 14 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -40,7 +40,7 @@ class ActivityController extends AbstractController
return $this->render($this->render.'list.html.twig',[
$this->data."s" => $datas,
"useheader" => true,
"usesidebar" => ($this->getUser()->hasRole("ROLE_ADMIN")),
"usesidebar" => false,
]);
}
// View user
@ -94,7 +94,7 @@ class ActivityController extends AbstractController
return $this->render('Answer/list.html.twig',[
$this->data."s" => $datas,
"useheader" => true,
"usesidebar" => ($this->getUser()->hasRole("ROLE_ADMIN")),
"usesidebar" => false,
]);
}
}
@ -129,7 +129,7 @@ class ActivityController extends AbstractController
// Affichage du formulaire
return $this->render($this->render.'edit.html.twig', [
'useheader' => true,
'usesidebar' => ($this->getUser()->hasRole("ROLE_ADMIN")),
'usesidebar' => false,
$this->data => $data,
'mode' => 'submit',
'form' => $form->createView()
@ -240,7 +240,7 @@ class ActivityController extends AbstractController
// Affichage du formulaire
return $this->render($this->render.'edit.html.twig', [
'useheader' => true,
'usesidebar' => ($this->getUser()->hasRole("ROLE_ADMIN")),
'usesidebar' => false,
$this->data => $data,
'mode' => 'update',
'form' => $form->createView()

View File

@ -1 +1 @@
*.php
*.php

View File

@ -1,14 +1,5 @@
<div id="sidebar" class="collapse">
<ul class="nav">
{% if is_granted('ROLE_ADMIN') or is_granted('ROLE_MASTER') or is_granted('ROLE_STUDENT')%}
<br>
<li class="last">
<a href="{{path("app_activity")}}">
<i class="fa fa-clipboard-list"></i>Activités
</a>
</li>
{% endif %}
{% if is_granted('ROLE_ADMIN') %}
<br>
<li class="title">Administration</li>