diff --git a/lam/templates/pdfedit/pdfdelete.php b/lam/templates/pdfedit/pdfdelete.php
index bae51b87..e9bebbb2 100644
--- a/lam/templates/pdfedit/pdfdelete.php
+++ b/lam/templates/pdfedit/pdfdelete.php
@@ -50,7 +50,7 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
}
// check if admin has submited delete operation
-if ($_POST['submit']) {
+if (isset($_POST['submit'])) {
// delete user profile
if(!deletePDFStructureDefinition($_POST['type'],$_POST['delete'])) {
metaRefresh('pdfmain.php?deleteScope=' . $_POST['type'] . '&deleteFailed=' . $_POST['delete']);
@@ -63,34 +63,44 @@ if ($_POST['submit']) {
}
// check if admin has aborted delete operation
-if ($_POST['abort']) {
+if (isset($_POST['abort'])) {
metaRefresh('pdfmain.php');
exit;
}
// print standard header
include '../main_header.php';
-echo ("
\n";
+echo "
\n");
+
+$container = new htmlTable();
+
+$container->addElement(new htmlOutputText(_("Do you really want to delete this PDF structure?")), true);
+$container->addElement(new htmlSpacer(null, '10px'), true);
+
+$templateContainer = new htmlTable();
+$templateContainer->addElement(new htmlOutputText(_('Account type')));
+$templateContainer->addElement(new htmlSpacer('10px', null));
+$templateContainer->addElement(new htmlOutputText(getTypeAlias($_GET['type'])), true);
+$templateContainer->addElement(new htmlOutputText(_('Name')));
+$templateContainer->addElement(new htmlSpacer('10px', null));
+$templateContainer->addElement(new htmlOutputText($_GET['delete']), true);
+$container->addElement($templateContainer, true);
+$container->addElement(new htmlSpacer(null, '10px'), true);
+
+$buttonContainer = new htmlTable();
+$buttonContainer->addElement(new htmlButton('submit', _("Delete")));
+$buttonContainer->addElement(new htmlButton('abort', _("Cancel")));
+$buttonContainer->addElement(new htmlHiddenInput('type', $_GET['type']));
+$buttonContainer->addElement(new htmlHiddenInput('delete', $_GET['delete']));
+$container->addElement($buttonContainer);
+
+$tabindex = 1;
+parseHtml(null, $container, array(), false, $tabindex, 'user');
+
+echo "\n";
+echo '
';
include '../main_footer.php';
diff --git a/lam/templates/pdfedit/pdfmain.php b/lam/templates/pdfedit/pdfmain.php
index a6e53868..f796a594 100644
--- a/lam/templates/pdfedit/pdfmain.php
+++ b/lam/templates/pdfedit/pdfmain.php
@@ -83,16 +83,11 @@ foreach ($sortedScopes as $scope => $title) {
'scope' => $scope,
'title' => $title,
'templates' => "");
- $availableScopes .= '
+
+ $tabindex = 1;
+ parseHtml(null, $container, array(), false, $tabindex, 'user');
+ ?>
+
+