aboutsummaryrefslogtreecommitdiff
path: root/templates/studip-fullcalendar.php
blob: ed5e861ad09d52c0d3c70a5dbee196ea70db1b49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
/**
 * @var array $attributes HTML attributes for the surrounding element.
 * @var string $title The title of the calendar.
 * @var array $config The calendar configuration.
 * @var string $extraClasses Extra CSS class for the fullcalendar element.
 * @var string $dialogSize The default size of dialogs when opened out of the calendar.
 * @var array $actionUrls URLs for different actions that usually trigger dialogs to be shown.
 * @var bool $displayHolidays Whether to show holidays in the calendar (true) or not (false).
 * @var bool $displayVacations Whether to show vacations in the calendar (true) or not (false).
 * @var string $externalDroppableContainerId The ID of the element that contains external droppable events.
 * @var string $externalDroppableEventSelector The selector for external droppable events.
 * @var bool $eventColourPicker Whether to show an event colour picker (true) or not (false).
 */
?>
<section class="studip-fullcalendar" <?= arrayToHtmlAttributes($attributes) ?>>
    <?= \Studip\VueApp::create('StudipCalendar')->withProps(
        [
            'title'             => $title,
            'config'            => $config,
            'extraClasses'     => $extraClasses,
            'dialogSize'       => $dialogSize,
            'actionUrls'       => $actionUrls,
            'displayHolidays'  => $displayHolidays,
            'displayVacations' => $displayVacations,
            'externalDroppableContainerId'   => $externalDroppableContainerId,
            'externalDroppableEventSelector' => $externalDroppableEventSelector,
            'eventColourPicker' => $eventColourPicker
        ]
    ) ?>
</section>