|
|
@ -14,9 +14,9 @@ function public_dashboard_view($stats, $free_shifts)
|
|
|
|
$shift_panels = [
|
|
|
|
$shift_panels = [
|
|
|
|
'<div class="row">'
|
|
|
|
'<div class="row">'
|
|
|
|
];
|
|
|
|
];
|
|
|
|
foreach ($free_shifts as $shift) {
|
|
|
|
foreach ($free_shifts as $i => $shift) {
|
|
|
|
$shift_panels[] = public_dashboard_shift_render($shift);
|
|
|
|
$shift_panels[] = public_dashboard_shift_render($shift);
|
|
|
|
if(count($shift_panels) % 4 == 0) {
|
|
|
|
if($i % 4 == 0) {
|
|
|
|
$shift_panels[] = '</div><div class="row">';
|
|
|
|
$shift_panels[] = '</div><div class="row">';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -25,7 +25,9 @@ function public_dashboard_view($stats, $free_shifts)
|
|
|
|
div('col-md-12', [
|
|
|
|
div('col-md-12', [
|
|
|
|
heading(_('Needed angels:'), 1)
|
|
|
|
heading(_('Needed angels:'), 1)
|
|
|
|
]),
|
|
|
|
]),
|
|
|
|
|
|
|
|
div('container-fluid', [
|
|
|
|
join($shift_panels)
|
|
|
|
join($shift_panels)
|
|
|
|
|
|
|
|
])
|
|
|
|
]);
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|