Verified Commit 77c03b27 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:sparkles: feat(public-forms) Set page title in public forms and invitation

issue #5867
Showing with 6 additions and 0 deletions
+6 -0
...@@ -101,6 +101,7 @@ class invitationPage extends standAlonePage ...@@ -101,6 +101,7 @@ class invitationPage extends standAlonePage
$this->assignSmartyVars(); $this->assignSmartyVars();
$smarty->append('css_files', get_template_path('login.css')); $smarty->append('css_files', get_template_path('login.css'));
$smarty->assign('title', _('Invitation'));
$smarty->display(get_template_path('headers.tpl')); $smarty->display(get_template_path('headers.tpl'));
$smarty->assign('errorMessage', $errorMessage); $smarty->assign('errorMessage', $errorMessage);
......
...@@ -305,6 +305,11 @@ class publicFormPage extends standAlonePage ...@@ -305,6 +305,11 @@ class publicFormPage extends standAlonePage
$smarty->assign('form', $this->form); $smarty->assign('form', $this->form);
$smarty->append('css_files', get_template_path('login.css')); $smarty->append('css_files', get_template_path('login.css'));
if (isset($this->form['fdPublicFormTitle'])) {
$smarty->assign('title', sprintf(_('Form - %s'), $this->form['fdPublicFormTitle']));
} else {
$smarty->assign('title', _('Form'));
}
$smarty->display(get_template_path('headers.tpl')); $smarty->display(get_template_path('headers.tpl'));
$smarty->assign('activated', $this->activated); $smarty->assign('activated', $this->activated);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment