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

go back button (as function)

parent 588d7de3
Branches
No related tags found
No related merge requests found
......@@ -143,6 +143,13 @@ function aPrjHome($sClass = "btn btn-default") {
return '<a href="/deployment/' . $aParams["prj"] . '/" class="' . $sClass . '"><i class=" glyphicon glyphicon-book"></i> ' . t("menu-project-home") . ' <strong>' . $oPrj->getLabel() . '</strong></a>';
}
/**
* get go back link as button
* @return string
*/
function aGoback($sClass = "btn btn-default") {
return '<a href="#" onclick="history.back();" class="' . $sClass . '" title="' . t("back") . '"><i class="glyphicon glyphicon-chevron-left"></i> ' . t("back") . '</a> ';
}
/**
* get go top link as button
* @return string
......
......@@ -88,7 +88,7 @@ if (array_key_exists("confirm", $aParams)) {
<form action="?" method="post" enctype="multipart/form-data">
<input type="hidden" name="confirm" value="1">
<fieldset>
<a class="btn btn-default btn-large" onclick="history.back();">' . t("back") . '</a>
'.aGoback().'
<button type="submit" class="btn btn-primary btn-large" >' . sprintf(t("page-accept-buttonlabel"), $sPhase, $sNext) . '</button>
</fieldset>
</form>
......
......@@ -97,7 +97,7 @@ if (!array_key_exists("confirm", $aParams)) {
<hr>
-->
<fieldset>
<a class="btn btn-default btn-large" onclick="history.back();">' . t("back") . '</a>
'.aGoback().'
<button type="submit" class="btn btn-primary btn-large" >' . sprintf(t("page-build-buttonlabel"), $sNext) . '</button>
</fieldset>
</form>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment