Some checks failed
Frontend / Unit Tests & Coverage (push) Has been skipped
Regenerate POT file (translatable strings) / Regenerate POT file (develop) (push) Failing after 1m13s
Regenerate POT file (translatable strings) / Regenerate POT file (main-hotfix) (push) Failing after 6s
Server / Tests (frappe ${{ matrix.frappe-branch }}) (push) Has been skipped
Server / Resolve frappe matrix (push) Failing after 1s
Frontend / Lint (push) Failing after 1s
Frontend / Production Build (push) Failing after 1s
Server / Coverage Wrap Up (push) Has been skipped
Frontend / Coverage Wrap Up (push) Has been skipped
51 lines
892 B
Python
51 lines
892 B
Python
# import frappe
|
|
from frappe.email.doctype.email_template.email_template import EmailTemplate
|
|
|
|
|
|
class CustomEmailTemplate(EmailTemplate):
|
|
@staticmethod
|
|
def default_list_data():
|
|
columns = [
|
|
{
|
|
"label": "Name",
|
|
"type": "Data",
|
|
"key": "name",
|
|
"width": "17rem",
|
|
},
|
|
{
|
|
"label": "Subject",
|
|
"type": "Data",
|
|
"key": "subject",
|
|
"width": "12rem",
|
|
},
|
|
{
|
|
"label": "Enabled",
|
|
"type": "Check",
|
|
"key": "enabled",
|
|
"width": "6rem",
|
|
},
|
|
{
|
|
"label": "Doctype",
|
|
"type": "Link",
|
|
"key": "reference_doctype",
|
|
"width": "12rem",
|
|
},
|
|
{
|
|
"label": "Last Modified",
|
|
"type": "Datetime",
|
|
"key": "modified",
|
|
"width": "8rem",
|
|
},
|
|
]
|
|
rows = [
|
|
"name",
|
|
"enabled",
|
|
"use_html",
|
|
"reference_doctype",
|
|
"subject",
|
|
"response",
|
|
"response_html",
|
|
"modified",
|
|
]
|
|
return {"columns": columns, "rows": rows}
|