51 lines
868 B
Python
51 lines
868 B
Python
# import jingrow
|
|
from jingrow import _
|
|
from jingrow.contacts.pagetype.contact.contact import Contact
|
|
|
|
|
|
class CustomContact(Contact):
|
|
@staticmethod
|
|
def default_list_data():
|
|
columns = [
|
|
{
|
|
'label': 'Name',
|
|
'type': 'Data',
|
|
'key': 'full_name',
|
|
'width': '17rem',
|
|
},
|
|
{
|
|
'label': 'Email',
|
|
'type': 'Data',
|
|
'key': 'email_id',
|
|
'width': '12rem',
|
|
},
|
|
{
|
|
'label': 'Phone',
|
|
'type': 'Data',
|
|
'key': 'mobile_no',
|
|
'width': '12rem',
|
|
},
|
|
{
|
|
'label': 'Organization',
|
|
'type': 'Data',
|
|
'key': 'company_name',
|
|
'width': '12rem',
|
|
},
|
|
{
|
|
'label': 'Last Modified',
|
|
'type': 'Datetime',
|
|
'key': 'modified',
|
|
'width': '8rem',
|
|
},
|
|
]
|
|
rows = [
|
|
"name",
|
|
"full_name",
|
|
"company_name",
|
|
"email_id",
|
|
"mobile_no",
|
|
"modified",
|
|
"image",
|
|
]
|
|
return {'columns': columns, 'rows': rows}
|