/
localized-form-static.jigx
84 lines (74 loc) · 2.61 KB
/
localized-form-static.jigx
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
title:
id: title
defaultMessage: New employee form
description: To view this jig in other languages, change your devices language settings to either German, French, Chez or Afrikaans
type: jig.default
icon: form
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://images.unsplash.com/photo-1423666639041-f56000c27a9a?q=80&w=2374&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D
children:
- type: component.form
instanceId: form-employee # used in the submit-form action to get context to the property instanceId
options:
children:
- type: component.text-field
instanceId: first_name # becomes the name of the column in table
options:
label:
id: first_name
defaultMessage: First Name
- type: component.text-field
instanceId: last_name # becomes the name of the column in table
options:
label:
id: last_name
defaultMessage: Last Name
- type: component.number-field
instanceId: contact_number # becomes the name of the column in table
options:
label:
id: contact_number
defaultMessage: Mobile number
- type: component.date-picker
instanceId: date_of_birth # becomes the name of the column in table
options:
label:
id: date_of_birth
defaultMessage: Date of birth
- type: component.avatar-field
instanceId: photo # becomes the name of the column in table
options:
label:
id: photo
defaultMessage: My profile
- type: component.signature-field
instanceId: signature # becomes the name of the column in table
options:
label:
id: signature
defaultMessage: Sign
- type: component.email-field
instanceId: email # becomes the name of the column in table
options:
label:
id: email
defaultMessage: Email address
actions:
- children:
- type: action.submit-form
options:
formId: form-employee
provider: DATA_PROVIDER_DYNAMIC
title:
id: create
defaultMessage: Create Record
entity: default/employees
method: create
goBack: previous