diff --git a/public_html/deployment/inc_functions.php b/public_html/deployment/inc_functions.php index 045a408c4a31183c6caca6a96b99cd6d48731f15..c4c33d312b44ef0c4f8fbaf495a8101a7933465b 100644 --- a/public_html/deployment/inc_functions.php +++ b/public_html/deployment/inc_functions.php @@ -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 diff --git a/public_html/deployment/pages/act_accept.php b/public_html/deployment/pages/act_accept.php index 9ee95d35fc5d5c6a72829f527887e0ca9aaf2619..358f3891da5a1d125a618a1b7cdc7469117e8718 100644 --- a/public_html/deployment/pages/act_accept.php +++ b/public_html/deployment/pages/act_accept.php @@ -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> diff --git a/public_html/deployment/pages/act_build.php b/public_html/deployment/pages/act_build.php index 9bc4360380359cb8c599e2399b47010ec960399b..2292efe0e8cf9010e1442369c8fc227918e12d06 100644 --- a/public_html/deployment/pages/act_build.php +++ b/public_html/deployment/pages/act_build.php @@ -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>