-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathcontacts.js
55 lines (54 loc) · 1.14 KB
/
contacts.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const contacts = {
name: 'app.Contacts',
component: 'Form',
schema: {
component: 'Form',
fields: [
{
name: 'store',
component: 'Field',
},
],
},
fields: [
{
component: 'CollectionField',
name: 'contacts',
label: 'Contacts',
hideLabel: true,
// forbidCreate: true,
// forbidUpdate: true,
// forbidDelete: true,
// forbidViewArchived: true,
// forbidSearch: true,
// forbidSort: true,
formFactory: {
component: 'Factory',
product: {
component: 'Form',
fields: [
{
name: 'firstName',
component: 'TextField',
label: 'First Name',
required: true,
block: false,
},
{
name: 'lastName',
component: 'TextField',
label: 'Last Name',
},
{
name: 'email',
component: 'EmailField',
label: 'Email',
},
],
},
},
store: '{{store}}',
},
],
};
export default contacts;