Skip to content
Snippets Groups Projects
Commit e92e2289 authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

new feature: button to set branch of next phase

parent ad22547a
No related branches found
No related tags found
1 merge request!62V2.0
...@@ -36,6 +36,8 @@ if (!array_key_exists("confirm", $aParams)) { ...@@ -36,6 +36,8 @@ if (!array_key_exists("confirm", $aParams)) {
// ------------------------------------------------------------ // ------------------------------------------------------------
$sNext = $oPrj->getNextPhase(); $sNext = $oPrj->getNextPhase();
$aPhaseData2 = $oPrj->getPhaseInfos($sNext); $aPhaseData2 = $oPrj->getPhaseInfos($sNext);
$sBranchontarget=isset($aPhaseData2["ready2install"]["branch"]) ? $aPhaseData2["ready2install"]["branch"]: '';
print_r($sBranchname);
$bIgnoreCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false; $bIgnoreCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false;
// $sOut.='<p>Re-Read Branches (ignore caching) - '.($bIgnoreCache ? "JA" : "mein" ).'</p>'; // $sOut.='<p>Re-Read Branches (ignore caching) - '.($bIgnoreCache ? "JA" : "mein" ).'</p>';
...@@ -70,6 +72,19 @@ if (!array_key_exists("confirm", $aParams)) { ...@@ -70,6 +72,19 @@ if (!array_key_exists("confirm", $aParams)) {
<tr> <tr>
<td class=""> <td class="">
' . $oPrj->renderSelectRemoteBranches(false, $bIgnoreCache) . ' ' . $oPrj->renderSelectRemoteBranches(false, $bIgnoreCache) . '
'.(
$sBranchontarget && $sBranchontarget != $sBranchname
? '
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="reloadBranches" value="1">
<input type="hidden" name="branchname" value="' . $sBranchontarget . '">
'.sprintf(t('page-build-branch-on-target'), $sBranchontarget).'<br>
<button type="submit" class="btn btn-default">' . sprintf(t('page-build-switch-to-target'), $sBranchontarget) . '</button>
</form>
<br><hr>
'
: ''
).'
<form action="?" method="post" enctype="multipart/form-data"> <form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="reloadBranches" value="1"> <input type="hidden" name="reloadBranches" value="1">
<input type="hidden" name="branchname" value="' . $sBranchname . '"> <input type="hidden" name="branchname" value="' . $sBranchname . '">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment