Skip to content

Commit

Permalink
New: Mail template for contacts (#29415)
Browse files Browse the repository at this point in the history
* New: Mail template for contacts

* New: Mail template for contacts

* New: Mail template for contacts
  • Loading branch information
fmarcet authored Apr 20, 2024
1 parent 307235d commit 13bca5c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion htdocs/admin/mails_templates.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* Copyright (C) 2012-2015 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2012 Christophe Battarel <christophe.battarel@ltairis.fr>
* Copyright (C) 2011-2016 Alexandre Spangaro <aspangaro@open-dsi.fr>
* Copyright (C) 2015 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2015-2024 Ferran Marcet <fmarcet@2byte.es>
* Copyright (C) 2016 Raphaël Doursenaud <rdoursenaud@gpcsolutions.fr>
* Copyright (C) 2018-2023 Frédéric France <frederic.france@netlogic.fr>
*
Expand Down Expand Up @@ -192,6 +192,9 @@
if (isModEnabled("societe") && $user->hasRight('societe', 'lire')) {
$elementList['thirdparty'] = img_picto('', 'company', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToThirdparty'));
}
if (isModEnabled("societe") && $user->hasRight('societe', 'contact', 'lire')) {
$elementList['contact'] = img_picto('', 'contact', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToContact'));
}
if (isModEnabled('project')) {
$elementList['project'] = img_picto('', 'project', 'class="pictofixedwidth"').dol_escape_htmltag($langs->trans('MailToProject'));
}
Expand Down
1 change: 1 addition & 0 deletions htdocs/langs/en_US/admin.lang
Original file line number Diff line number Diff line change
Expand Up @@ -2036,6 +2036,7 @@ MailToSendContract=Contracts
MailToSendReception=Receptions
MailToExpenseReport=Expense reports
MailToThirdparty=Third parties
MailToContact=Contacts
MailToMember=Members
MailToUser=Users
MailToProject=Projects
Expand Down

0 comments on commit 13bca5c

Please sign in to comment.