blob: 6e07e0ab27b4dbadca822f177dd9eeffb6aa62de (
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
32
33
34
35
|
<?php
/**
* @var Admin_CoursesController $controller
* @var int $count_courses
* @var Semester $semester
* @var array $fields
* @var array $activated_fields
* @var string $sortby
* @var string $sortflag
* @var array $activeSidebarElements
* @var int $max_show_courses
* @var array $store_data
*/
$unsortable_fields = [
'avatar',
'room_time',
'contents'
];
?>
<? if (empty($insts)): ?>
<?= MessageBox::info(sprintf(_('Sie wurden noch keinen Einrichtungen zugeordnet. Bitte wenden Sie sich an einen der zuständigen %sAdministratoren%s.'), '<a href="' . URLHelper::getLink('dispatch.php/siteinfo/show') . '">', '</a>')) ?>
<? else: ?>
<?= Studip\VueApp::create('AdminCourses')
->withProps([
'show-complete' => (bool) Config::get()->ADMIN_COURSES_SHOW_COMPLETE,
'fields' => $fields,
'unsortable-fields' => $unsortable_fields,
'max-courses' => (int) $max_show_courses,
'sort-by' => $sortby,
'sort-flag' => $sortflag,
])
->withVuexStore('AdminCoursesStore', 'admincourses', $store_data) ?>
<? endif; ?>
|