-
Notifications
You must be signed in to change notification settings - Fork 2
/
section-row-entity-field-dd.jigx
91 lines (86 loc) · 3.13 KB
/
section-row-entity-field-dd.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
85
86
87
88
89
90
91
title: Sections, Rows and Entity Fields
description: Jig to display sections, rows & entity fields
type: jig.default
header:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: =@ctx.datasources.cleaning-services-dynamic[0].image
datasources:
cleaning-services-dynamic:
type: datasource.sqlite
options:
provider: DATA_PROVIDER_DYNAMIC
entities:
- entity: default/cleaning-services
query: |
SELECT
id,
'$.area',
'$.description',
'$.hourlyrate',
'$.illustration',
'$.image',
'$.indoor',
'$.onceoffrate',
'$.service',
'$.time'
FROM [default/cleaning-services]
children:
- type: component.entity
options:
children:
- type: component.section
options:
title: Cleaning Services
children:
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Service
value: =@ctx.datasources.cleaning-services-dynamic[0].service
- type: component.entity-field
options:
label: Area
value: =@ctx.datasources.cleaning-services-dynamic[0].area
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Time
value: =@ctx.datasources.cleaning-services-dynamic[0].time & ' minutes'
- type: component.entity-field
options:
label: Indoor
value: =@ctx.datasources.cleaning-services-dynamic[0].indoor
contentType: checkbox
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Description
value: =@ctx.datasources.cleaning-services-dynamic[0].description
isMultiline: true
- type: component.section
options:
title: Rates
children:
- type: component.field-row
options:
children:
- type: component.entity-field
options:
label: Hourly Rate
value: =@ctx.datasources.cleaning-services-dynamic[0].hourlyrate != null ? @ctx.datasources.cleaning-services-dynamic[0].hourlyrate:'N/A'
- type: component.entity-field
options:
label: Once Off Rate
value: =@ctx.datasources.cleaning-services-dynamic[0].onceoffrate != null ? @ctx.datasources.cleaning-services-dynamic[0].onceoffrate:'N/A'