mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 14:24:24 +00:00
FEATURE [genericDoc][calendar] minor changes to template and provider
This commit is contained in:
parent
ba55fa349b
commit
ef04a04056
@ -53,9 +53,6 @@
|
|||||||
{{ mmm.createdBy(document) }}
|
{{ mmm.createdBy(document) }}
|
||||||
</div>
|
</div>
|
||||||
<ul class="item-col record_actions flex-shrink-1">
|
<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) %}
|
{% if is_granted('CHILL_CALENDAR_DOC_SEE', document) %}
|
||||||
<li>
|
<li>
|
||||||
{{ document.storedObject|chill_document_button_group(document.storedObject.title, is_granted('CHILL_CALENDAR_CALENDAR_EDIT', c)) }}
|
{{ document.storedObject|chill_document_button_group(document.storedObject.title, is_granted('CHILL_CALENDAR_CALENDAR_EDIT', c)) }}
|
||||||
|
@ -28,16 +28,10 @@ final class AccompanyingPeriodCalendarGenericDocProvider implements GenericDocFo
|
|||||||
{
|
{
|
||||||
public const KEY = 'accompanying_period_calendar_document';
|
public const KEY = 'accompanying_period_calendar_document';
|
||||||
|
|
||||||
private EntityManagerInterface $em;
|
|
||||||
|
|
||||||
private Security $security;
|
|
||||||
|
|
||||||
public function __construct(
|
public function __construct(
|
||||||
Security $security,
|
private Security $security,
|
||||||
EntityManagerInterface $entityManager
|
private EntityManagerInterface $em
|
||||||
) {
|
) {
|
||||||
$this->security = $security;
|
|
||||||
$this->em = $entityManager;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user