Przeglądaj źródła

Email configurable footer (#3584)

* Configurable footer for email template.

* Configurable footer: New table row for new line.

* Configurable footer: Updated space above footer text.
version-14
Ashwini Save 8 lat temu
committed by Rushabh Mehta
rodzic
commit
8ac396e30d
1 zmienionych plików z 7 dodań i 2 usunięć
  1. +7
    -2
      frappe/email/email_body.py

+ 7
- 2
frappe/email/email_body.py Wyświetl plik

@@ -298,8 +298,13 @@ def get_footer(email_account, footer=None):
company_address = frappe.db.get_default("email_footer_address")

if company_address:
footer += '<div style="margin: 15px auto; text-align: center; color: #8d99a6">{0}</div>'\
.format(company_address.replace("\n", "<br>"))
company_address = company_address.splitlines(True)
footer += '<table width="100%" border=0>'
footer += '<tr><td height=20></td></tr>'
for x in company_address:
footer += '<tr style="margin: 15px auto; text-align: center; color: #8d99a6"><td>{0}</td></tr>'\
.format(x)
footer += "</table>"

if not cint(frappe.db.get_default("disable_standard_email_footer")):
for default_mail_footer in frappe.get_hooks("default_mail_footer"):


Ładowanie…
Anuluj
Zapisz