mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
notation modifications
This commit is contained in:
parent
41fc41b1da
commit
8411c909ff
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
namespace Chill\TaskBundle\Controller;
|
namespace Chill\TaskBundle\Controller;
|
||||||
|
|
||||||
|
use Chill\MainBundle\Entity\Scope;
|
||||||
use Chill\PersonBundle\Privacy\PrivacyEvent;
|
use Chill\PersonBundle\Privacy\PrivacyEvent;
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
|
||||||
@ -281,12 +282,12 @@ class SingleTaskController extends AbstractController
|
|||||||
|
|
||||||
|
|
||||||
if($task->getContext() instanceof Person){
|
if($task->getContext() instanceof Person){
|
||||||
return $this->render('ChillTaskBundle:SingleTask:show.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/show.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'timeline' => $timeline
|
'timeline' => $timeline
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->render('ChillTaskBundle:SingleTask:showCourseTask.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/showCourseTask.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'timeline' => $timeline
|
'timeline' => $timeline
|
||||||
));
|
));
|
||||||
@ -401,12 +402,12 @@ class SingleTaskController extends AbstractController
|
|||||||
));
|
));
|
||||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
||||||
|
|
||||||
return $this->render('ChillTaskBundle:SingleTask:edit.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/edit.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'form' => $form->createView()
|
'form' => $form->createView()
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->render('ChillTaskBundle:SingleTask:editCourseTask.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/editCourseTask.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'form' => $form->createView(),
|
'form' => $form->createView(),
|
||||||
'accompanyingCourse' => $course
|
'accompanyingCourse' => $course
|
||||||
@ -510,12 +511,12 @@ class SingleTaskController extends AbstractController
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($task->getContext() instanceof Person){
|
if($task->getContext() instanceof Person){
|
||||||
return $this->render('ChillTaskBundle:SingleTask:confirm_delete.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/confirm_delete.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'delete_form' => $form->createView()
|
'delete_form' => $form->createView()
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
return $this->render('ChillTaskBundle:SingleTask:confirm_deleteCourseTask.html.twig', array(
|
return $this->render('@ChillTask/SingleTask/confirm_deleteCourseTask.html.twig', array(
|
||||||
'task' => $task,
|
'task' => $task,
|
||||||
'delete_form' => $form->createView(),
|
'delete_form' => $form->createView(),
|
||||||
'accompanyingCourse' => $course
|
'accompanyingCourse' => $course
|
||||||
@ -646,7 +647,7 @@ class SingleTaskController extends AbstractController
|
|||||||
|
|
||||||
$userId = $this->request->query->getInt('user_id', 0);
|
$userId = $this->request->query->getInt('user_id', 0);
|
||||||
$user = $this->getDoctrine()->getManager()
|
$user = $this->getDoctrine()->getManager()
|
||||||
->getRepository('ChillMainBundle:User')
|
->getRepository(User::class)
|
||||||
->find($userId);
|
->find($userId);
|
||||||
|
|
||||||
if ($user === null) {
|
if ($user === null) {
|
||||||
@ -663,7 +664,7 @@ class SingleTaskController extends AbstractController
|
|||||||
$scopeId = $this->request->query->getInt('scope_id', 0);
|
$scopeId = $this->request->query->getInt('scope_id', 0);
|
||||||
|
|
||||||
$scope = $this->getDoctrine()->getManager()
|
$scope = $this->getDoctrine()->getManager()
|
||||||
->getRepository('ChillMainBundle:Scope')
|
->getRepository(Scope::class)
|
||||||
->find($scopeId);
|
->find($scopeId);
|
||||||
|
|
||||||
if ($scope === null) {
|
if ($scope === null) {
|
||||||
@ -762,7 +763,7 @@ class SingleTaskController extends AbstractController
|
|||||||
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
$this->eventDispatcher->dispatch(PrivacyEvent::PERSON_PRIVACY_EVENT, $event);
|
||||||
}
|
}
|
||||||
|
|
||||||
return $this->render('ChillTaskBundle:SingleTask:index.html.twig',
|
return $this->render('@ChillTask/SingleTask/index.html.twig',
|
||||||
array_merge($viewParams, [ 'form' => $form->createView() ]));
|
array_merge($viewParams, [ 'form' => $form->createView() ]));
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -859,7 +860,7 @@ class SingleTaskController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
'ChillTaskBundle:SingleTask:index.html.twig',
|
'@ChillTask/SingleTask/index.html.twig',
|
||||||
[
|
[
|
||||||
'tasks' => $tasks,
|
'tasks' => $tasks,
|
||||||
'accompanyingCourse' => $course,
|
'accompanyingCourse' => $course,
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
|
|
||||||
{% include 'ChillTaskBundle:SingleTask:_edit.html.twig' %}
|
{% include '@ChillTask/SingleTask/_edit.html.twig' %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include 'ChillTaskBundle:SingleTask:_edit.html.twig' %}
|
{% include '@ChillTask/SingleTask/_edit.html.twig' %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -31,13 +31,15 @@
|
|||||||
{% if person is not null %}
|
{% if person is not null %}
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
<div class="tasks">
|
<div class="tasks">
|
||||||
{% include 'ChillTaskBundle:SingleTask:_list.html.twig' %}
|
{% include '@ChillTask/SingleTask/_list.html.twig' %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="col-md-10 col-xxl tasks">
|
<div class="col-md-10 col-xxl tasks">
|
||||||
{% include 'ChillTaskBundle:SingleTask:_listCourse.html.twig' %}
|
{% include '@ChillTask/SingleTask/_listCourse.html.twig' %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -25,5 +25,6 @@
|
|||||||
|
|
||||||
|
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
{% include 'ChillTaskBundle:SingleTask:_new.html.twig' %}
|
{% include '@ChillTask/SingleTask/_new.html.twig' %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -8,5 +8,6 @@
|
|||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
{% include 'ChillTaskBundle:SingleTask:_new.html.twig' %}
|
{% include '@ChillTask/SingleTask/_new.html.twig' %}
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
{% block personcontent %}
|
{% block personcontent %}
|
||||||
|
|
||||||
{% include 'ChillTaskBundle:SingleTask:_show.html.twig' %}
|
{% include '@ChillTask/SingleTask/_show.html.twig' %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
{% include 'ChillTaskBundle:SingleTask:_show.html.twig' %}
|
{% include '@ChillTask/SingleTask/_show.html.twig' %}
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user