back button can be turned off

This commit is contained in:
Uwe Steinmann 2020-05-12 12:02:22 +02:00
parent 2e25da5719
commit b7d61aea43

View File

@ -37,6 +37,7 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
$pagetitle = $this->params['pagetitle'];
$errormsg = $this->params['errormsg'];
$plain = $this->params['plain'];
$showbutton = $this->hasParam('nobackbutton') === false || $this->getParam('nobackbutton') === false;
$settings = $this->params['settings'];
if(!$plain) {
@ -49,7 +50,8 @@ class SeedDMS_View_ErrorDlg extends SeedDMS_Bootstrap_Style {
print "<h4>".getMLText('error')."!</h4>";
print htmlspecialchars($errormsg);
print "</div>";
print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
if($showbutton)
print "<div><button class=\"btn history-back\">".getMLText('back')."</button></div>";
$this->contentEnd();
$this->htmlEndPage();