From 42cf1e9d054427d19d0adc3be86cf5f4385b7321 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Sat, 1 May 2021 13:19:47 +0200 Subject: [PATCH] use identical layout on all remove pages --- views/bootstrap/class.RemoveDocument.php | 6 +----- views/bootstrap/class.RemoveFolder.php | 6 +----- views/bootstrap/class.RemoveVersion.php | 4 +--- 3 files changed, 3 insertions(+), 13 deletions(-) diff --git a/views/bootstrap/class.RemoveDocument.php b/views/bootstrap/class.RemoveDocument.php index 57cb0f816..a3e43fa49 100644 --- a/views/bootstrap/class.RemoveDocument.php +++ b/views/bootstrap/class.RemoveDocument.php @@ -43,19 +43,15 @@ class SeedDMS_View_RemoveDocument extends SeedDMS_Theme_Style { $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("rm_document")); - $this->contentContainerStart('warning'); + $this->warningMsg(getMLText("confirm_rm_document", array ("documentname" => htmlspecialchars($document->getName())))); ?>
-

- htmlspecialchars($document->getName())));?> -

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ diff --git a/views/bootstrap/class.RemoveFolder.php b/views/bootstrap/class.RemoveFolder.php index c91b9f9c2..713462875 100644 --- a/views/bootstrap/class.RemoveFolder.php +++ b/views/bootstrap/class.RemoveFolder.php @@ -41,19 +41,15 @@ class SeedDMS_View_RemoveFolder extends SeedDMS_Theme_Style { $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true), "view_folder", $folder); $this->contentHeading(getMLText("rm_folder")); - $this->contentContainerStart(); + $this->warningMsg(getMLText("confirm_rm_folder", array ("foldername" => htmlspecialchars($folder->getName())))); ?>
-

- htmlspecialchars($folder->getName())));?> -

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */ diff --git a/views/bootstrap/class.RemoveVersion.php b/views/bootstrap/class.RemoveVersion.php index 6c6f8690a..40e9869e7 100644 --- a/views/bootstrap/class.RemoveVersion.php +++ b/views/bootstrap/class.RemoveVersion.php @@ -43,17 +43,15 @@ class SeedDMS_View_RemoveVersion extends SeedDMS_Theme_Style { $this->contentStart(); $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("rm_version")); - $this->contentContainerStart(); + $this->warningMsg(getMLText("confirm_rm_version", array ("documentname" => htmlspecialchars($document->getName()), "version" => $version->getVersion()))); ?>
-

htmlspecialchars($document->getName()), "version" => $version->getVersion()));?>

contentContainerEnd(); $this->contentEnd(); $this->htmlEndPage(); } /* }}} */