|
2 | 2 | "$schema": "https://raw.githubusercontent.com/infinum/eightshift-frontend-libs/develop/schemas/block.json", |
3 | 3 | "blockName": "form-selector", |
4 | 4 | "title": "Form selector", |
5 | | - "description" : "Choose the form you want to display", |
| 5 | + "description": "Choose the form you want to display", |
6 | 6 | "category": "eightshift-forms", |
7 | 7 | "icon": { |
8 | 8 | "src": "esf-form-picker" |
9 | 9 | }, |
10 | | - "keywords": [ |
11 | | - "forms" |
12 | | - ], |
| 10 | + "keywords": ["forms"], |
13 | 11 | "hasInnerBlocks": true, |
14 | 12 | "supports": { |
15 | 13 | "inserter": false |
|
28 | 26 | "inputInputName": "email", |
29 | 27 | "inputInputIsRequired": true, |
30 | 28 | "inputInputIsEmail": true, |
31 | | - "inputInputDisabledOptions": [ |
32 | | - "inputInputIsRequired", |
33 | | - "inputInputName" |
34 | | - ] |
| 29 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
35 | 30 | } |
36 | 31 | ], |
37 | 32 | [ |
|
57 | 52 | "textareaTextareaName": "message" |
58 | 53 | } |
59 | 54 | ], |
60 | | - [ |
61 | | - "eightshift-forms/submit" |
62 | | - ] |
| 55 | + ["eightshift-forms/submit"] |
63 | 56 | ] |
64 | 57 | }, |
65 | 58 | { |
|
112 | 105 | "slug": "talentlyft", |
113 | 106 | "blockName": "eightshift-forms/talentlyft" |
114 | 107 | }, |
| 108 | + { |
| 109 | + "label": "Pardot", |
| 110 | + "slug": "pardot", |
| 111 | + "blockName": "eightshift-forms/pardot", |
| 112 | + "innerBlocks": [ |
| 113 | + [ |
| 114 | + "eightshift-forms/input", |
| 115 | + { |
| 116 | + "inputInputFieldLabel": "E-mail", |
| 117 | + "inputInputType": "email", |
| 118 | + "inputInputName": "email", |
| 119 | + "inputInputIsRequired": true, |
| 120 | + "inputInputIsEmail": true, |
| 121 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
| 122 | + } |
| 123 | + ], |
| 124 | + [ |
| 125 | + "eightshift-forms/input", |
| 126 | + { |
| 127 | + "inputInputFieldLabel": "Name", |
| 128 | + "inputInputIsRequired": true, |
| 129 | + "inputInputName": "name" |
| 130 | + } |
| 131 | + ], |
| 132 | + [ |
| 133 | + "eightshift-forms/input", |
| 134 | + { |
| 135 | + "inputInputFieldLabel": "Subject", |
| 136 | + "inputInputIsRequired": true, |
| 137 | + "inputInputName": "subject" |
| 138 | + } |
| 139 | + ], |
| 140 | + [ |
| 141 | + "eightshift-forms/textarea", |
| 142 | + { |
| 143 | + "textareaTextareaFieldLabel": "Message", |
| 144 | + "textareaTextareaName": "message" |
| 145 | + } |
| 146 | + ], |
| 147 | + ["eightshift-forms/submit"] |
| 148 | + ] |
| 149 | + }, |
115 | 150 | { |
116 | 151 | "label": "Jira", |
117 | 152 | "slug": "jira", |
|
125 | 160 | "inputInputName": "email", |
126 | 161 | "inputInputIsRequired": true, |
127 | 162 | "inputInputIsEmail": true, |
128 | | - "inputInputDisabledOptions": [ |
129 | | - "inputInputIsRequired", |
130 | | - "inputInputName" |
131 | | - ] |
| 163 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
132 | 164 | } |
133 | 165 | ], |
134 | 166 | [ |
|
154 | 186 | "textareaTextareaName": "message" |
155 | 187 | } |
156 | 188 | ], |
157 | | - [ |
158 | | - "eightshift-forms/submit" |
159 | | - ] |
| 189 | + ["eightshift-forms/submit"] |
160 | 190 | ] |
161 | 191 | }, |
162 | 192 | { |
|
172 | 202 | "inputInputName": "email", |
173 | 203 | "inputInputIsRequired": true, |
174 | 204 | "inputInputIsEmail": true, |
175 | | - "inputInputDisabledOptions": [ |
176 | | - "inputInputIsRequired", |
177 | | - "inputInputName" |
178 | | - ] |
| 205 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
179 | 206 | } |
180 | 207 | ], |
181 | 208 | [ |
|
204 | 231 | "inputInputName": "amount" |
205 | 232 | } |
206 | 233 | ], |
207 | | - [ |
208 | | - "eightshift-forms/submit" |
209 | | - ] |
| 234 | + ["eightshift-forms/submit"] |
210 | 235 | ] |
211 | 236 | }, |
212 | 237 | { |
|
222 | 247 | "inputInputName": "email", |
223 | 248 | "inputInputIsRequired": true, |
224 | 249 | "inputInputIsEmail": true, |
225 | | - "inputInputDisabledOptions": [ |
226 | | - "inputInputIsRequired", |
227 | | - "inputInputName" |
228 | | - ] |
| 250 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
229 | 251 | } |
230 | 252 | ], |
231 | 253 | [ |
|
238 | 260 | "inputInputName": "amount" |
239 | 261 | } |
240 | 262 | ], |
241 | | - [ |
242 | | - "eightshift-forms/submit" |
243 | | - ] |
| 263 | + ["eightshift-forms/submit"] |
244 | 264 | ] |
245 | 265 | }, |
246 | 266 | { |
|
256 | 276 | "inputInputName": "email", |
257 | 277 | "inputInputIsRequired": true, |
258 | 278 | "inputInputIsEmail": true, |
259 | | - "inputInputDisabledOptions": [ |
260 | | - "inputInputIsRequired", |
261 | | - "inputInputName" |
262 | | - ] |
| 279 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
263 | 280 | } |
264 | 281 | ], |
265 | 282 | [ |
|
285 | 302 | "textareaTextareaName": "message" |
286 | 303 | } |
287 | 304 | ], |
288 | | - [ |
289 | | - "eightshift-forms/submit" |
290 | | - ] |
| 305 | + ["eightshift-forms/submit"] |
291 | 306 | ] |
292 | 307 | }, |
293 | 308 | { |
|
304 | 319 | "inputInputIsNumber": true |
305 | 320 | } |
306 | 321 | ], |
307 | | - [ |
308 | | - "eightshift-forms/submit" |
309 | | - ] |
| 322 | + ["eightshift-forms/submit"] |
310 | 323 | ] |
311 | 324 | }, |
312 | 325 | { |
|
322 | 335 | "inputInputName": "email", |
323 | 336 | "inputInputIsRequired": true, |
324 | 337 | "inputInputIsEmail": true, |
325 | | - "inputInputDisabledOptions": [ |
326 | | - "inputInputIsRequired", |
327 | | - "inputInputName" |
328 | | - ] |
| 338 | + "inputInputDisabledOptions": ["inputInputIsRequired", "inputInputName"] |
329 | 339 | } |
330 | 340 | ], |
331 | 341 | [ |
|
336 | 346 | "inputInputName": "name" |
337 | 347 | } |
338 | 348 | ], |
339 | | - [ |
340 | | - "eightshift-forms/submit" |
341 | | - ] |
| 349 | + ["eightshift-forms/submit"] |
342 | 350 | ] |
343 | 351 | } |
344 | 352 | ] |
|
0 commit comments