* @package block * @link https://www.zentao.net */ namespace zin; jsVar('delayInfo', $lang->project->delayInfo); foreach($executionStats as $scrum) { $scrum->totalEstimate = zget($scrum, 'estimate', 0) . $lang->execution->workHourUnit; $scrum->totalConsumed = zget($scrum, 'consumed', 0) . $lang->execution->workHourUnit; $scrum->totalLeft = zget($scrum, 'left', 0) . $lang->execution->workHourUnit; $scrum->progress = zget($scrum, 'progress', 0); $scrum->totalEstimate = helper::formatHours($scrum->totalEstimate); $scrum->totalConsumed = helper::formatHours($scrum->totalConsumed); $scrum->totalLeft = helper::formatHours($scrum->totalLeft); } if(!$longBlock) { unset($config->block->scrum->dtable->fieldList['status']); unset($config->block->scrum->dtable->fieldList['totalEstimate']); unset($config->block->scrum->dtable->fieldList['totalConsumed']); unset($config->block->scrum->dtable->fieldList['totalLeft']); unset($config->block->scrum->dtable->fieldList['burns']); } panel ( setClass('p-0 scrumlist-block list-block ' . ($longBlock ? 'block-long' : 'block-sm')), set::title($block->title), set::headingClass('border-b'), to::headingActions ( a ( set('class', 'text-gray'), set('href', $block->moreLink), $lang->more, icon('caret-right') ) ), dtable ( set::height(318), set::horzScrollbarPos('inside'), set::fixedLeftWidth($longBlock ? '0.33' : '0.5'), set::cols(array_values($config->block->scrum->dtable->fieldList)), set::data(array_values($executionStats)), set::onRenderCell(jsRaw('window.onRenderScrumNameCell')) ) ); render();