.content.xml
10.7 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
granite:rel="screens-dcc-actions-assignchannel-dialog"
jcr:mixinTypes="[granite:InternalArea]"
jcr:primaryType="nt:unstructured"
jcr:title="Channel Assignment"
sling:resourceType="granite/ui/components/coral/foundation/dialog">
<items jcr:primaryType="nt:unstructured">
<form
granite:id="screens-dcc-actions-assignchannel-form"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form"
action="${empty requestPathInfo.suffix ? param.item : requestPathInfo.suffix}${param.appendTo}"
dataPath="${requestPathInfo.suffix}"
method="post"
style="vertical">
<successresponse
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/responses/reload"/>
<items jcr:primaryType="nt:unstructured">
<charset
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
ignoreData="{Boolean}true"
name="_charset_"
value="utf-8"/>
<name
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
name=":nameHint"/>
<role
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Channel Role"
name="./role"
required="{Boolean}true"
validation="foundation.jcr.name"/>
<channel
granite:class="u-coral-clearFix screens-ChannelAssignment-type"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<assignment-type-label
granite:class="coral-Form-fieldlabel u-coral-pullLeft"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/text"
text="Reference channel…"/>
<assignment-type
granite:class="u-coral-pullRight u-coral-padding-horizontal"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/radiogroup"
fieldDescription="Choose 'by path' for explicit assignments, and 'by name' to dynamically resolve the channel in the parent locations."
name="./sling:resourceType">
<items jcr:primaryType="nt:unstructured">
<absolute
jcr:primaryType="nt:unstructured"
checked="{Boolean}true"
text="by path"
value="screens/core/components/channelassignment/absolute"/>
<name
jcr:primaryType="nt:unstructured"
checked="{Boolean}false"
text="by name"
value="screens/core/components/channelassignment/dynamic"/>
</items>
</assignment-type>
</items>
</channel>
<channel-path
granite:class="screens-ChannelAssignment-channelReference"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/pathbrowser"
fieldLabel="Channel Path"
name="./path"
pickerTitle="Select Path"
required="{Boolean}true"
rootPath="/content/screens"/>
<channel-name
granite:class="screens-ChannelAssignment-channelReference"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete"
deleteHint="{Boolean}false"
disabled="{Boolean}true"
fieldLabel="Channel Name"
name="./name"
required="{Boolean}true">
<datasource
jcr:primaryType="nt:unstructured"
sling:resourceType="screens/dcc/components/datasources/channelsinpath"
path="${param.item}"/>
<options
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/autocomplete/list"/>
</channel-name>
<priority
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/numberfield"
fieldLabel="Priority"
max="9999"
min="1"
name="./priority"
required="{Boolean}true"
value="1"/>
<events-type
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/hidden"
name="./events@TypeHint"
value="String[]"/>
<events
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/select"
emptyText="Select"
fieldLabel="Supported Events"
multiple="{Boolean}true"
name="./events">
<items jcr:primaryType="nt:unstructured">
<event-load
jcr:primaryType="nt:unstructured"
text="Initial Load"
value="load"/>
<event-idle
jcr:primaryType="nt:unstructured"
text="Idle Screen"
value="idle"/>
<event-timer
jcr:primaryType="nt:unstructured"
text="Timer"
value="timer"/>
<event-interaction
jcr:primaryType="nt:unstructured"
text="User Interaction"
value="click"/>
</items>
</events>
<schedule
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
emptyText="after 6:00 and before 18:00"
fieldDescription="Use later.js' text or cron syntax. The Schedule is evaluated based on the Device's local time."
fieldLabel="Schedule…"
name="./schedule"
required="{Boolean}false"/>
<link
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/hyperlink"
href="https://bunkat.github.io/later/parsers.html#cron"
target="_blank"
text="Documentation for the schedule syntax"/>
<schedule-dates
granite:class="u-coral-clearFix screens-ChannelAssignment-dates screens-InputGroup screens-InputGroup--2columns"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<start-date
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
displayedFormat="YYYY-MM-DD"
emptyText="2000-12-31"
fieldLabel="active from"
name="./startDate"
required="{Boolean}false"
valueFormat="YYYY-MM-DD"/>
<end-date
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/datepicker"
displayedFormat="YYYY-MM-DD"
emptyText="2030-12-31"
fieldLabel="active until"
name="./endDate"
required="{Boolean}false"
valueFormat="YYYY-MM-DD"/>
</items>
</schedule-dates>
<show-tooltip
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./showTooltip"
required="{Boolean}false"
text="Show Attraction Tooltip"
uncheckedValue="{Boolean}false"
value="{Boolean}true"/>
</items>
</form>
</items>
<footer jcr:primaryType="nt:unstructured">
<cancel
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
text="Cancel">
<parentConfig
jcr:primaryType="nt:unstructured"
close="{Boolean}true"/>
</cancel>
<save
granite:rel="screens-dcc-actions-assignchannel-dialog-submit"
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/button"
formId="screens-dcc-actions-assignchannel-form"
text="Save"
type="submit"
variant="primary">
<parentConfig
jcr:primaryType="nt:unstructured"
close="{Boolean}false"/>
</save>
</footer>
</jcr:root>