2018-03-30 17:02:28 +00:00
|
|
|
const countryList = Object.keys(require('../fixtures/countryInfo.json')).sort();
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
fields: [
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "file",
|
|
|
|
"label": "File",
|
|
|
|
"fieldtype": "File",
|
|
|
|
"required": 1,
|
|
|
|
"directory": 1
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "country",
|
|
|
|
"label": "Country",
|
|
|
|
"fieldtype": "Autocomplete",
|
|
|
|
"required": 1,
|
|
|
|
getList: () => countryList
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "name",
|
|
|
|
"label": "Name",
|
|
|
|
"fieldtype": "Data",
|
|
|
|
"required": 1
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "email",
|
|
|
|
"label": "Email",
|
|
|
|
"fieldtype": "Data",
|
2018-04-02 17:06:16 +00:00
|
|
|
"required": 1,
|
|
|
|
"inputType": "email"
|
2018-03-30 17:02:28 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "companyName",
|
|
|
|
"label": "Company Name",
|
|
|
|
"fieldtype": "Data",
|
|
|
|
"required": 1
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
"fieldname": "bankName",
|
|
|
|
"label": "Bank Name",
|
|
|
|
"fieldtype": "Data",
|
|
|
|
"required": 1
|
|
|
|
}
|
|
|
|
],
|
|
|
|
|
|
|
|
layout: [
|
|
|
|
{
|
|
|
|
title: 'Select File location',
|
|
|
|
fields: ['file']
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Select Country',
|
|
|
|
fields: ['country']
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Add a Profile',
|
|
|
|
fields: ['name', 'email']
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
title: 'Add your Company',
|
2018-04-02 17:06:16 +00:00
|
|
|
fields: ['companyName', 'bankName']
|
2018-03-30 17:02:28 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|