add link to public dashboard from shift view
This commit is contained in:
parent
2fdf520daf
commit
5278be1f0f
|
@ -19,4 +19,12 @@ function public_dashboard_controller()
|
|||
public_dashboard_view($stats, $free_shifts)
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns url to public dashboard
|
||||
*/
|
||||
function public_dashboard_link()
|
||||
{
|
||||
return page_link_to('public-dashboard');
|
||||
}
|
||||
?>
|
|
@ -250,6 +250,7 @@ function view_user_shifts()
|
|||
'set_last_4h' => _('last 4h'),
|
||||
'set_next_4h' => _('next 4h'),
|
||||
'set_next_8h' => _('next 8h'),
|
||||
'buttons' => button(public_dashboard_link(), glyph('dashboard') . _('Public Dashboard'))
|
||||
])
|
||||
])
|
||||
]);
|
||||
|
|
|
@ -54,6 +54,11 @@
|
|||
<a href="javascript:setHours(8)" class="btn btn-default ">%set_next_8h%</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group" style="margin-top: .5em">
|
||||
<div class="btn-group">
|
||||
%buttons%
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-2">%room_select%</div>
|
||||
<div class="col-md-2">%type_select%</div>
|
||||
|
|
Loading…
Reference in New Issue