24 lines
859 B
JavaScript
24 lines
859 B
JavaScript
const STATUS = { active: 'Active', disabled: 'Disabled' };
|
|
|
|
const contactlists = {
|
|
service: 'contact',
|
|
module: 'contact_list',
|
|
title: 'Contact List',
|
|
subtitle: 'Contact Management',
|
|
baseUrl: '/contactlist',
|
|
listPath: '/contactlists',
|
|
listFields: [
|
|
{ key: 'actions', title: 'Actions', buttons: ['edit', 'delete'] },
|
|
{ key: 'name', title: 'Name', type: 'text' },
|
|
{ key: 'status', title: 'Status', type: 'select' },
|
|
],
|
|
formFields: () => [
|
|
{ key: 'name', title: 'Name', type: 'text', required: true },
|
|
{ key: 'type', title: 'Type', type: 'select', values: { normal: 'Normal', dynamic: 'Dynamic' }, required: true },
|
|
{ key: 'conditions', title: 'Conditions', type: 'textarea', fullwidth: true },
|
|
{ key: 'status', title: 'Status', type: 'select', required: true, values: STATUS },
|
|
],
|
|
};
|
|
|
|
export default contactlists;
|