<td style="padding: 5px; border-top: 1px dotted #AAA; border-bottom: 1px dotted #AAA; font-weight: bold; font-size: 12px;"><?php echo __('Total remaining effort'); ?> </td> <td style="width: 50px; border-top: 1px dotted #AAA; border-bottom: 1px dotted #AAA; font-size: 13px; font-weight: bold; text-align: center; padding: 5px;" id="scrum_sprint_<?php echo $milestone->getID(); ?> _remaining_points"><?php echo $milestone->getPointsEstimated() - $milestone->getPointsSpent(); ?> </td> <td style="width: 50px; border-top: 1px dotted #AAA; border-bottom: 1px dotted #AAA; font-size: 13px; font-weight: bold; text-align: center; padding: 5px;" id="scrum_sprint_<?php echo $milestone->getID(); ?> _remaining_hours"><?php echo \thebuggenie\core\entities\common\Timeable::formatHoursAndMinutes($milestone->getHoursEstimated(true) - $milestone->getHoursSpent(true), $milestone->getMinutesEstimated(true) - $milestone->getMinutesSpent(true)); ?> </td> <td style="padding: 5px; border-top: 1px dotted #AAA; border-bottom: 1px dotted #AAA; font-weight: bold; font-size: 12px;"> </td> </tr> </tbody> </table> <script type="text/javascript"> require(['domReady', 'thebuggenie/tbg', 'jquery', 'jquery.flot', 'jquery.flot.time', 'jquery.flot.dashes'], function (domReady, TBG, jQuery) { domReady(function () { jQuery(function () { var d_e_points = []; var d_e_hours = []; var d_s_points = []; var d_s_hours = [];
/** * Returns the spent hours and minutes formatted * * @param bool $append_minutes * @param bool $subtract_hours * * @return integer|string */ public function getSpentHoursAndMinutes($append_minutes = false, $subtract_hours = false) { return common\Timeable::formatHoursAndMinutes($this->getSpentHours($append_minutes), $this->getSpentMinutes($subtract_hours)); }