1
0
forked from test/crm
jcrm/crm/overrides/email_template.py

52 lines
920 B
Python

# import jingrow
from jingrow import _
from jingrow.email.pagetype.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': 'Pagetype',
'type': 'Link',
'key': 'reference_pagetype',
'width': '12rem',
},
{
'label': 'Last Modified',
'type': 'Datetime',
'key': 'modified',
'width': '8rem',
},
]
rows = [
"name",
"enabled",
"use_html",
"reference_pagetype",
"subject",
"response",
"response_html",
"modified",
]
return {'columns': columns, 'rows': rows}