5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
9 $actions = array(
"All" =>
"#",
"Upcoming events" =>
"#");
10 $aria_label =
"filter entries";
11 $view_controls = array(
12 $f->viewControl()->mode($actions, $aria_label)->withActive(
"All")
16 $ptable =
$f->table()->presentation(
19 function (
$row, $record, $ui_factory, $environment) {
21 ->withHeadline($record[
'title'])
22 ->withSubheadline($record[
'type'])
23 ->withImportantFields(
25 $record[
'begin_date'],
27 'Available Slots: ' => $record[
'bookings_available']
32 $ui_factory->listing()->descriptive(
34 'Targetgroup' => $record[
'target_group'],
35 'Goals' => $record[
'goals'],
36 'Topics' => $record[
'topics']
41 ->withFurtherFieldsHeadline(
'Detailed Information')
44 'Location: ' => $record[
'location'],
46 'Date: ' => $record[
'date'],
47 'Available Slots: ' => $record[
'bookings_available'],
48 'Fee: ' => $record[
'fee']
52 $ui_factory->button()->standard(
'book course',
'#')
58 require(
'included_data.php');
62 return $renderer->render($ptable->withData(
$data));