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',[
|
return $this->render($this->render.'list.html.twig',[
|
||||||
$this->data."s" => $datas,
|
$this->data."s" => $datas,
|
||||||
"useheader" => true,
|
"useheader" => true,
|
||||||
"usesidebar" => ($this->getUser()->hasRole("ROLE_ADMIN")),
|
"usesidebar" => false,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
// View user
|
// View user
|
||||||
|
@ -94,7 +94,7 @@ class ActivityController extends AbstractController
|
||||||
return $this->render('Answer/list.html.twig',[
|
return $this->render('Answer/list.html.twig',[
|
||||||
$this->data."s" => $datas,
|
$this->data."s" => $datas,
|
||||||
"useheader" => true,
|
"useheader" => true,
|
||||||
"usesidebar" => ($this->getUser()->hasRole("ROLE_ADMIN")),
|
"usesidebar" => false,
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -129,7 +129,7 @@ class ActivityController extends AbstractController
|
||||||
// Affichage du formulaire
|
// Affichage du formulaire
|
||||||
return $this->render($this->render.'edit.html.twig', [
|
return $this->render($this->render.'edit.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usesidebar' => ($this->getUser()->hasRole("ROLE_ADMIN")),
|
'usesidebar' => false,
|
||||||
$this->data => $data,
|
$this->data => $data,
|
||||||
'mode' => 'submit',
|
'mode' => 'submit',
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
|
@ -240,7 +240,7 @@ class ActivityController extends AbstractController
|
||||||
// Affichage du formulaire
|
// Affichage du formulaire
|
||||||
return $this->render($this->render.'edit.html.twig', [
|
return $this->render($this->render.'edit.html.twig', [
|
||||||
'useheader' => true,
|
'useheader' => true,
|
||||||
'usesidebar' => ($this->getUser()->hasRole("ROLE_ADMIN")),
|
'usesidebar' => false,
|
||||||
$this->data => $data,
|
$this->data => $data,
|
||||||
'mode' => 'update',
|
'mode' => 'update',
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
*.php
|
*.php
|
||||||
|
|
|
@ -1,14 +1,5 @@
|
||||||
<div id="sidebar" class="collapse">
|
<div id="sidebar" class="collapse">
|
||||||
<ul class="nav">
|
<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') %}
|
{% if is_granted('ROLE_ADMIN') %}
|
||||||
<br>
|
<br>
|
||||||
<li class="title">Administration</li>
|
<li class="title">Administration</li>
|
||||||
|
|
Loading…
Reference in New Issue