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)) {
// ------------------------------------------------------------
$sNext = $oPrj->getNextPhase();
$aPhaseData2 = $oPrj->getPhaseInfos($sNext);
$sBranchontarget=isset($aPhaseData2["ready2install"]["branch"]) ? $aPhaseData2["ready2install"]["branch"]: '';
print_r($sBranchname);
$bIgnoreCache = isset($aParams['reloadBranches']) ? $aParams['reloadBranches'] : false;
// $sOut.='<p>Re-Read Branches (ignore caching) - '.($bIgnoreCache ? "JA" : "mein" ).'</p>';
......@@ -70,7 +72,20 @@ if (!array_key_exists("confirm", $aParams)) {
<tr>
<td class="">
' . $oPrj->renderSelectRemoteBranches(false, $bIgnoreCache) . '
<form action="?" method="post" enctype="multipart/form-data">
'.(
$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">
<input type="hidden" name="reloadBranches" value="1">
<input type="hidden" name="branchname" value="' . $sBranchname . '">
<fieldset>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment