improve public dashboard
This commit is contained in:
parent
59b8e76d12
commit
3379ea10b2
|
@ -18,7 +18,9 @@ function public_dashboard_view($stats, $free_shifts)
|
||||||
'<script>$(function(){setTimeout(function(){window.location.reload();}, 60000)})</script>'
|
'<script>$(function(){setTimeout(function(){window.location.reload();}, 60000)})</script>'
|
||||||
]),
|
]),
|
||||||
div('container-fluid first', [
|
div('container-fluid first', [
|
||||||
heading(_('Needed angels:'), 1),
|
div('col-xs-12', [
|
||||||
|
heading(_('Needed angels:'), 1)
|
||||||
|
]),
|
||||||
join($shift_panels)
|
join($shift_panels)
|
||||||
])
|
])
|
||||||
]);
|
]);
|
||||||
|
@ -38,7 +40,7 @@ function public_dashborad_shift_render($shift)
|
||||||
}
|
}
|
||||||
|
|
||||||
$panel_body = glyph('time') . date('H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']);
|
$panel_body = glyph('time') . date('H:i', $shift['start']) . ' - ' . date('H:i', $shift['end']);
|
||||||
$panel_body .= ' (' . round(($shift['end'] - $shift['start']) / 3600) . ')';
|
$panel_body .= ' (' . round(($shift['end'] - $shift['start']) / 3600) . ' h)';
|
||||||
|
|
||||||
$panel_body .= '<br>' . glyph('tasks') . ShiftType($shift['shifttype_id'])['name'];
|
$panel_body .= '<br>' . glyph('tasks') . ShiftType($shift['shifttype_id'])['name'];
|
||||||
if (! empty($shift['title'])) {
|
if (! empty($shift['title'])) {
|
||||||
|
|
Loading…
Reference in New Issue