corrections review

This commit is contained in:
Julie Lenaerts 2022-01-28 11:09:14 +01:00
parent d70f8aa712
commit 5bfdee0c28
5 changed files with 6 additions and 18 deletions

View File

@ -148,8 +148,6 @@ final class PersonResourceController extends AbstractController
$comment = $form['comment']->getData();
$kind = $form['kind']->getData();
dump($person);
$personResource->setKind($kind);
$personResource->setPerson($person);
$personResource->setThirdParty($thirdparty);

View File

@ -15,6 +15,7 @@ namespace Chill\PersonBundle\Controller;
use Chill\PersonBundle\Repository\AccompanyingPeriodRepository;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Annotation\Route;
class UserAccompanyingPeriodController extends AbstractController
{
@ -26,12 +27,13 @@ class UserAccompanyingPeriodController extends AbstractController
$this->accompanyingPeriodRepository = $accompanyingPeriodRepository;
}
/**
* @Route("/{_locale}/accompanying-periods", name="chill_person_accompanying_period_user")
*/
public function listAction(Request $request)
{
$userId = $this->getUser()->getId();
$accompanyingPeriods = [];
$accompanyingPeriods = $this->accompanyingPeriodRepository->findBy(['user' => $userId]);
$accompanyingPeriods = $this->accompanyingPeriodRepository->findBy(['user' => $this->getUser()]);
return $this->render('@ChillPerson/AccompanyingPeriod/user_periods_list.html.twig', [
'accompanyingPeriods' => $accompanyingPeriods

View File

@ -41,14 +41,8 @@ class UserMenuBuilder implements LocalMenuBuilderInterface
public $translator;
public function __construct(
CountNotificationTask $counter,
TokenStorageInterface $tokenStorage,
TranslatorInterface $translator,
AuthorizationCheckerInterface $authorizationChecker
) {
$this->counter = $counter;
$this->tokenStorage = $tokenStorage;
$this->translator = $translator;
$this->authorizationChecker = $authorizationChecker;
}

View File

@ -52,9 +52,7 @@
{% if resource.comment.comment is not empty %}
<div class="item-row separator">
<section class="chill-entity entity-comment-embeddable">
<blockquote class="chill-user-quote">
<div>{{ resource.comment.comment }}<div>
</blockquote>
<div>{{ resource.comment|chill_entity_render_box }}<div>
</section>
</div>
{% endif %}

View File

@ -55,10 +55,6 @@ chill_person_accompanying_period_re_open:
path: /{_locale}/person/{person_id}/accompanying-period/{period_id}/re-open
controller: Chill\PersonBundle\Controller\AccompanyingPeriodController::reOpenAction
chill_person_accompanying_period_user:
path: /{_locale}/accompanying-periods
controller: Chill\PersonBundle\Controller\UserAccompanyingPeriodController::listAction
chill_person_resource_list:
path: /{_locale}/person/{person_id}/resources/list
controller: Chill\PersonBundle\Controller\PersonResourceController::listAction