added button to reedit after save

This commit is contained in:
Roland Gruber 2011-05-03 16:15:38 +00:00
parent c44578a060
commit 87003e01b5
3 changed files with 35 additions and 4 deletions

View File

@ -2,6 +2,7 @@ August 2011 3.5.0
- New module "General information": shows internal data about accounts (e.g. creation time)
- inetOrgPerson: New attributes o, employeeNumber, initials
- Server information shows data from cn=monitor
- lots of small improvements
- LAM Pro:
-> Automount: allow to create automount maps
-> Password policy: allow to (un)lock accounts

View File

@ -792,6 +792,13 @@ class accountContainer {
metaRefresh("edit.php?type=" . $this->type . "&suffix=" . $this->dn);
exit();
}
// reedit account
if (isset($_POST['accountContainerBackToEdit'])) {
// open fresh account page
unset($_SESSION[$this->base]);
metaRefresh("edit.php?type=" . $this->type . "&DN=" . $this->finalDN);
exit();
}
// back to account list
if (isset($_POST['accountContainerBackToList'])) {
// Return to account list
@ -1205,15 +1212,26 @@ class accountContainer {
$container = new htmlTable();
$message = new htmlStatusMessage('INFO', _('LDAP operation successful.'), $text);
$message->colspan = 5;
$message->colspan = 10;
$container->addElement($message, true);
$container->addElement(new htmlSpacer(null, '20px'), true);
$type = new $this->type();
$container->addElement(new htmlButton('accountContainerCreateAgain', $type->LABEL_CREATE_ANOTHER_ACCOUNT));
$container->addElement(new htmlButton('accountContainerBackToList', $type->LABEL_BACK_TO_ACCOUNT_LIST));
$createButton = new htmlButton('accountContainerCreateAgain', $type->LABEL_CREATE_ANOTHER_ACCOUNT);
$createButton->setIconClass('createButton');
$container->addElement($createButton);
$container->addElement(new htmlSpacer('10px', null));
$container->addElement(new htmlButton('accountContainerCreatePDF', _('Create PDF file')));
$pdfButton = new htmlButton('accountContainerCreatePDF', _('Create PDF file'));
$pdfButton->setIconClass('pdfButton');
$container->addElement($pdfButton);
$container->addElement(new htmlSpacer('10px', null));
$backToListButton = new htmlButton('accountContainerBackToList', $type->LABEL_BACK_TO_ACCOUNT_LIST);
$backToListButton->setIconClass('backButton');
$container->addElement($backToListButton);
$container->addElement(new htmlSpacer('10px', null));
$backToEditButton = new htmlButton('accountContainerBackToEdit', _('Edit again'));
$backToEditButton->setIconClass('editButton');
$container->addElement($backToEditButton);
$tabindex = 1;
parseHtml(null, $container, array(), false, $tabindex, $this->type);

View File

@ -148,6 +148,10 @@ tr.highlight {
background-image: url(../graphics/add.png) !important;
}
.editButton {
background-image: url(../graphics/edit.png) !important;
}
.settingsButton {
background-image: url(../graphics/tools.png) !important;
}
@ -156,6 +160,14 @@ tr.highlight {
background-image: url(../graphics/up.gif) !important;
}
.backButton {
background-image: url(../graphics/back.gif) !important;
}
.pdfButton {
background-image: url(../graphics/pdf.png) !important;
}
.smallPadding span {
padding: 0.1em 0.4em !important;
}