-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate_controls.yaml
284 lines (281 loc) · 11.8 KB
/
template_controls.yaml
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
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
locked_main_01:
'#type': container
'#attributes':
style: 'box-sizing:border-box; display:flex; color:rgb(51, 51, 51); font-family:Lato, sans-serif; font-size:20px;'
locked_flex_01:
'#type': container
'#attributes':
style: 'box-sizing:border-box; float:left; padding:20px;'
locked_content_01:
'#type': container
'#attributes':
style: 'box-sizing:border-box; float:left;'
heading_level_02:
'#type': processed_text
'#format': rich_text
'#text': |
<h2>HEADING LEVEL 2</h2>
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
processed_text_h2_01:
'#type': processed_text
'#format': rich_text
'#text': |
<!-- TEXT content here! -->
<div style="box-sizing:border-box; float:left; line-height:1.75;">
This is the first column of a two column page. In this example, styles are set inline using DIVs
tags. For example:
<div style="font-size:30; color:red; text-align:center; padding:25px;">
FONT SIZE 30; RED, PADDING 25px</div>
<div style="font-size:20; background-color:#333; color:#fff; text-align:center; padding:50px;">
<p>FONT SIZE 20</p>
<p>BACKGROUND GREY</p>
<p><strong>PADDING 50px</strong></p>
</div>
<div style="box-sizing:border-box; float:left; text-align:center; padding:25px; width:50%;">LEFT SIDE</div>
<div style="box-sizing:border-box; float:left; text-align:center; padding:25px; width:50%;">FLOAT: RIGHT SIDE</div>
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
processed_text_h3_02:
'#type': processed_text
'#format': rich_text
'#text': |
<div style="box-sizing:border-box; display:flow-root; width:100%;">
<p><h3 style="background:linear-gradient(90deg, rgba(28,48,74,1) 0%, rgba(50,50,50,1) 35%, rgba(0, 0, 0,1) 100%); color:#ffffff; display:inline-block; font-family:'Helvetica Neue', Helvetica, Arial, sans-serif; font-size:18px;line-height: 1.75; margin-bottom:15px; padding:20px; vertical-align:middle; width:100%;">
<!-- HEADER 3 content here! -->
<strong>HEADING LEVEL 3: Information on form accessibility - heading on a stylized gradient background.</strong></h3></p>
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
text_field:
'#type': textfield
'#title': 'Example text field - styled using "attributes" - question goes here - do you need a text field?'
'#description': 'Example description for a text field. It is important to include this when creating form fields.'
'#help_title': 'Example help title (optional).'
'#help': 'Example help text (optional).'
'#placeholder': 'Placeholder text (optional).'
'#required': true
'#required_error': 'Error message - this field is required (optional).'
'#wrapper_attributes':
style: 'width:inherit;color:red;'
'#attributes':
style: 'width:inherit;color:green;max-width:100%;'
'#label_attributes':
style: 'width:inherit;color:blue;'
textarea:
'#type': textarea
'#title': 'Example text area'
'#description': 'Example description for a text area. It is important to include this when creating form fields.'
'#placeholder': 'Placeholder text (optional).'
'#required': true
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
phone_number:
'#type': textfield
'#title': 'Text Field with Phone Number Mask'
'#description': 'Description of Text Field with Phone Number Mask. A mask will ensure the submitter provides valid data.'
'#help_title': 'Help title'
'#help': 'Help text.'
'#input_mask': '(999) 999-9999'
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
postal_code:
'#type': textfield
'#title': 'Postal Code'
'#description': 'Please enter a valid postal code.'
'#input_mask': 'a9a 9a9'
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
email:
'#type': textfield
'#title': Email
'#description': 'Please enter a valid email.'
'#input_mask': '''alias'': ''email'''
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
date:
'#type': date
'#title': 'Please provide a date:'
'#description': 'Please enter date.'
'#date_date_format': ''
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
checkboxes:
'#type': checkboxes
'#title': 'Sample Question: check all that apply - I have:'
'#description': 'Animal checklist.'
'#options':
CAT: '...at least one cat. -- Check this box if you have one or more cats.'
DOG: '...at least one cat. -- Check this box if you have one or more dogs.'
OTHER: '...at least one other animal. -- Check this box if you have one or more other animals.'
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
radios:
'#type': radios
'#title': 'Example radio question. This uses a preconfigured option called "translations". Use existing cinfigurations or create your own.'
'#description': 'Example description for radios'
'#options': translations
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
autocomplete_country:
'#type': autocomplete
'#title': 'This type of element allows a submitter choose from an "auto completing" list. Start typing (minimum 3 letters) to see a list of possible results.'
'#description': 'Description for auto-completeing Country selection.'
'#help_title': 'Select a Country'
'#help': 'Start typing to see a list of possible countries. This list was populated using a pre-configured options list called <b>country_names</b>.'
'#autocomplete_items': country_names
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
locked_flex_02:
'#type': container
'#attributes':
style: 'box-sizing:border-box; float:left; padding:20px;'
locked_content_02:
'#type': container
'#attributes':
style: 'box-sizing:border-box; float:left;'
rating:
'#type': rating
'#title': 'Rating from 1 to 5 - how much did you enjoy learning about ratings?'
'#description': 'Rate this from 1 (dislike) to 5 (like)'
'#title_display': before
'#description_display': before
'#max': '5'
'#star_size': large
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;padding-top:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
radio_rating:
'#type': radios
'#title': 'Radio Rating'
'#description': 'Please rate it!'
'#options': likert_comparison_2
'#options_display': side_by_side
'#wrapper_attributes':
style: 'width:inherit;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
captcha:
'#type': captcha
'#captcha_title': 'Question title'
'#description': 'Please enter valid CAPTCHA string.'
'#captcha_description': 'Question description'
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
industry:
'#type': select
'#title': 'Industry pulldown example. Populated using pre-configured option "industry".'
'#description': 'Please select an industry.'
'#options': industry
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
radios_yes_no:
'#type': radios
'#title': 'Radios Yes/No'
'#description': 'Please answer yes or no - thank you - <br> Please let us know if you are not sure <a href=""mailto:[email protected]"">[email protected]</a>'
'#help_title': 'Not sure?'
'#help': 'Please let us know if you are not sure.'
'#description_display': before
'#help_display': title_after
'#options': yes_no
'#options_display': side_by_side
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;max-width:400px;'
'#attributes':
style: 'width:inherit;max-width:400px;'
'#label_attributes':
style: 'width:inherit;max-width:400px;'
'#help_text': 'Please answer yes or no.'
radio_custom:
'#type': radios
'#title': 'If you want to quickly add a radio choice, use this example. Did this help?'
'#description': 'Please answer yes or no.'
'#options':
1: 'Yes, this really did help -- Thank you!'
2: 'No, I don''t get it -- Help please!'
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
pulldown_select:
'#type': select
'#title': 'If you want to quickly add a pulldown choice, use this example. Did this help?'
'#description': 'Please answer yes or no.'
'#options':
'YES': 'Yes, this really did help -- Thank you!'
'NO': 'No, I don''t get it -- Help please!'
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'
terms_of_service:
'#type': terms_of_service
'#terms_title': 'Terms of service with link example.'
'#description': 'Description of Terms of Service - please read using link above.'
'#terms_content': 'Terms content'
'#wrapper_attributes':
style: 'width:inherit;padding-bottom:20px;'
'#attributes':
style: 'width:inherit;max-width:100%;'
'#label_attributes':
style: 'width:inherit;'