Skip to content
Snippets Groups Projects
Unverified Commit 01d6b4ed authored by Helmo's avatar Helmo
Browse files

Add content name to page title for edit forms, #6401

parent 1c681d3e
No related branches found
No related tags found
No related merge requests found
......@@ -79,6 +79,16 @@ class page_action extends tform_actions {
parent::onShowNew();
}
function onShowEdit() {
global $app, $conf;
parent::onShowEdit();
if(isset($this->dataRecord)) {
$app->tform->formDef['title'] = $app->lng('DNS Zone') . ' ' . $this->dataRecord['origin'];
}
}
function onShowEnd() {
global $app, $conf;
......
......@@ -67,6 +67,17 @@ class page_action extends tform_actions {
parent::onShowNew();
}
function onShowEdit() {
global $app, $conf;
parent::onShowEdit();
if(isset($this->dataRecord)) {
$app->tform->formDef['title'] = $app->lng('Mailbox') . ' ' . $this->dataRecord['email'];
}
}
function onShowEnd() {
global $app, $conf;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment