logo et sidebar
This commit is contained in:
parent
376103170f
commit
01ce3c3090
Binary file not shown.
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 5.9 KiB |
|
@ -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()
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue