Skip to content
Snippets Groups Projects
Commit 230ffbcd authored by hahn's avatar hahn
Browse files

add accept button in simple view

parent b538bd51
No related branches found
No related tags found
No related merge requests found
...@@ -73,10 +73,14 @@ class projectlist { ...@@ -73,10 +73,14 @@ class projectlist {
$sPrjFilter.='<option value="'.$sPrj.'">'.$oPrj->getLabel().'</option>'; $sPrjFilter.='<option value="'.$sPrj.'">'.$oPrj->getLabel().'</option>';
$sOutPhases = ''; $sOutPhases = '';
$sOutPhases2 = '';
// loop over phases ... // loop over phases ...
foreach (array_keys($oPrj->getPhases()) as $sPhase) { foreach (array_keys($oPrj->getPhases()) as $sPhase) {
$sOutPhases.=$oPrj->renderAllPhaseDetails($sPhase,true,false); $sOutPhases.=$oPrj->renderAllPhaseDetails($sPhase,true,false);
if ($oPrj->canAcceptPhase($sPhase)){
$sOutPhases2.=$oPrj->renderLink("accept", $sPhase);
}
} }
$sOut2 .= '<div class="'.$sPrj.' '.$sTrClass.' prjbox"><div class="title">' $sOut2 .= '<div class="'.$sPrj.' '.$sTrClass.' prjbox"><div class="title">'
...@@ -107,7 +111,7 @@ class projectlist { ...@@ -107,7 +111,7 @@ class projectlist {
$sOut.='</td> $sOut.='</td>
' . $sOutPhases . ' ' . $sOutPhases . '
</tr>'; </tr>';
$sOut2.='</div></div>'; $sOut2.=$sOutPhases2 . '</div></div>';
} }
if ($sOut) { if ($sOut) {
$sRowHead1=''; $sRowHead1='';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment