Skip to content

Commit e256b26

Browse files
author
Till Brehm
committed
Merge branch '6401-page-title' into 'develop'
Add content name to page title for edit forms, #6401 Closes #6401 See merge request ispconfig/ispconfig3!1648
2 parents 1c681d3 + 01d6b4e commit e256b26

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

interface/web/dns/dns_soa_edit.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,16 @@ function onShowNew() {
7979
parent::onShowNew();
8080
}
8181

82+
function onShowEdit() {
83+
global $app, $conf;
84+
85+
parent::onShowEdit();
86+
87+
if(isset($this->dataRecord)) {
88+
$app->tform->formDef['title'] = $app->lng('DNS Zone') . ' ' . $this->dataRecord['origin'];
89+
}
90+
}
91+
8292
function onShowEnd() {
8393
global $app, $conf;
8494

interface/web/mail/mail_user_edit.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@ function onShowNew() {
6767
parent::onShowNew();
6868
}
6969

70+
function onShowEdit() {
71+
global $app, $conf;
72+
73+
parent::onShowEdit();
74+
75+
if(isset($this->dataRecord)) {
76+
$app->tform->formDef['title'] = $app->lng('Mailbox') . ' ' . $this->dataRecord['email'];
77+
}
78+
}
79+
80+
7081
function onShowEnd() {
7182
global $app, $conf;
7283

0 commit comments

Comments
 (0)