FEATURE [genericDoc][calendar] minor changes to template and provider

This commit is contained in:
Julie Lenaerts 2023-05-31 16:54:21 +02:00
parent ba55fa349b
commit ef04a04056
2 changed files with 2 additions and 11 deletions

View File

@ -53,9 +53,6 @@
{{ mmm.createdBy(document) }}
</div>
<ul class="item-col record_actions flex-shrink-1">
<li>
{{ chill_entity_workflow_list('Chill\\PersonBundle\\Entity\\AccompanyingPeriod\\AccompanyingPeriodWorkEvaluationDocument', document.id) }}
</li>
{% if is_granted('CHILL_CALENDAR_DOC_SEE', document) %}
<li>
{{ document.storedObject|chill_document_button_group(document.storedObject.title, is_granted('CHILL_CALENDAR_CALENDAR_EDIT', c)) }}

View File

@ -28,16 +28,10 @@ final class AccompanyingPeriodCalendarGenericDocProvider implements GenericDocFo
{
public const KEY = 'accompanying_period_calendar_document';
private EntityManagerInterface $em;
private Security $security;
public function __construct(
Security $security,
EntityManagerInterface $entityManager
private Security $security,
private EntityManagerInterface $em
) {
$this->security = $security;
$this->em = $entityManager;
}
/**