-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
500 lines (442 loc) · 27 KB
/
index.html
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
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
<!doctype html>
<html class="no-js" lang="en">
<head>
<meta charset="utf-8">
<meta content="ie=edge" http-equiv="x-ua-compatible">
<title>w-email | Send email trough InCMS API</title>
<meta content="A package for send emails trough InCMS API that do it trough SMTP and collect all data also in Multi Tenant way" name="description">
<meta content="width=device-width, initial-scale=1, shrink-to-fit=no" name="viewport">
<!-- @html5bp <link rel="manifest" href="site.webmanifest">-->
<!-- @html5bp <link rel="apple-touch-icon" href="icon.png">-->
<!-- Place favicon.ico in the root directory -->
<!-- Style with that withFront works -->
<link href="/node_modules/withfront/dist/css/libraries.min.css" rel="stylesheet"> <!-- grunt cssmin:libraries | for conf -->
<!--<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css"> yet in dist/css/libraries.min.css
<link rel="stylesheet" href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"> yet in dist/css/libraries.min.css -->
<!-- end# Style with that withFront works -->
<!-- This theme style -->
<link href="/css/style.css" rel="stylesheet">
<!-- w-front (withFront) tools -->
<link href="/node_modules/withfront/dist/css/w-style.min.css" rel="stylesheet">
</head>
<body>
<!--[if lte IE 9]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please
<a href="https://browsehappy.com/">upgrade your browser</a> to improve your experience and security.</p>
<![endif]-->
<div class="wrapper">
<div class="container">
<div class="row">
<div class="col-12 text-center">
<h1>Contact Form</h1>
</div>
<section class="contact-section">
<form action=""
class="w-email children_age_form w-cookie-form contact-form"
method="POST"
>
<input data-w-email="lang_code" name="lang_code" type="hidden" value="it">
<div class="form-group">
<div class="row contact-form__container">
<div class="col-lg-4 contact-form__column">
<div class="contact-form__input-wrapper">
<div class="contact-form__input-wrapper-header">
<h5>I tuoi dati</h5>
</div>
<div class="form-col form-col--name">
<div class="book_item">
<label for="contact-form-name">Nome *</label>
<div class="input-container">
<i class="fas fa-user icon"></i>
<input data-w-email="first_name" id="contact-form-name" name="first_name" required type="text">
</div>
</div>
</div>
<div class="form-col form-col--surname">
<div class="book_item">
<label for="contact-form-surname">Cognome</label>
<div class="input-container">
<i class="far fa-user icon"></i>
<input data-w-email="last_name" id="contact-form-surname" name="last_name" type="text">
</div>
</div>
</div>
<div class="form-col form-col--phone">
<div class="book_item">
<label for="contact-form-phone">Telefono</label>
<div class="input-container">
<i class="fas fa-phone icon"></i>
<input data-w-email="telephone" id="contact-form-phone" name="_form[extra][telephone]" type="text">
</div>
</div>
</div>
<div class="form-col form-col--email">
<div class="book_item">
<label for="contact-form-email">Email *</label>
<div class="input-container">
<i class="fas fa-envelope icon"></i>
<input data-w-email="email" id="contact-form-email" name="email"
required type="email">
</div>
</div>
<div class="_the_email_confirm_group">
<div class="form-group">
<label class="upper" for="name">Email confirm</label>
<input class="_the_email_confirm_" name="_the_email_confirm_" type="text" value="confirmed"/>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 contact-form__column period">
<div class="contact-form__input-wrapper">
<div class="contact-form__input-wrapper-header">
<h5>Il tuo soggiorno</h5>
</div>
<div class="form-col form-col--arrive">
<div class="book_item">
<label for="contact-form-arrive">Arrivo *</label>
<div class="input-container">
<i class="far fa-calendar-check icon"></i>
<input class="range checkin" data-w-email="checkin" id="contact-form-arrive" name="checkin" required type="text">
</div>
</div>
</div>
<div class="form-col form-col--departure">
<div class="book_item">
<label for="contact-form-arrive">Partenza *</label>
<div class="input-container">
<i class="far fa-calendar-times icon"></i>
<input class="range checkout" data-w-email="checkout" id="contact-form-departure" name="checkout" required type="text">
</div>
</div>
</div>
<div class="form-col form-col--adults">
<div class="book_item">
<label for="contact-form-adults">Adulti *</label>
<div class="input-container">
<i class="fas fa-users icon"></i>
<input data-w-email="adults" id="contact-form-adults" max="10" min="1" name="adults" required type="number">
</div>
</div>
</div>
<div class="form-col form-col--childs">
<div class="book_item">
<label for="contact-form-childs">Bambini</label>
<div class="input-container">
<i class="fas fa-child icon"></i>
<input class="child_num_input" data-w-email="children" id="contact-form-childs" max="3" min="0"
name="children" type="number">
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4 contact-form__column">
<div class="contact-form__input-wrapper">
<div class="contact-form__input-wrapper-header">
<h5>Trattamento e richieste</h5>
</div>
<div class="form-col form-col--reservation-type">
<div class="book_item">
<label for="contact-form-type">Sistemazione</label>
<div class="input-group input-group-lg">
<div class="input-group-prepend">
<span class="input-group-text" style="background: #218D96; border: none; border-radius: 0; color: white;">
<i class="fas fa-bed"></i>
</span>
</div>
<select class="form-control" id="contact-form-type" name="room">
<option>Scegli l'opzione...</option>
<option>Camera singola</option>
<option>Camera doppia</option>
<option>Camera matrimoniale</option>
<option>Matrimoniale + 1 letto</option>
<option>Matrimoniale + 2 letti</option>
<option>Matrimoniale + 3 letti</option>
</select>
</div>
</div>
</div>
<div class="form-col form-col--reservation-type">
<div class="book_item">
<label for="contact-form-reservation-type">Trattamento</label>
<div class="input-group input-group-lg">
<div class="input-group-prepend">
<span class="input-group-text" style="background: #218D96; border: none; border-radius: 0; color: white;">
<i class="fas fa-umbrella-beach"></i>
</span>
</div>
<select class="form-control" id="contact-form-reservation-type" name="accomodation">
<option>Scegli l'opzione...</option>
<option>All inclusive</option>
<option>Pensione completa</option>
<option>Mezza pensione</option>
<option>B&B</option>
<option>Solo pernottamento</option>
</select>
</div>
</div>
</div>
<div class="form-col form-col--msg">
<div class="book_item">
<label for="message">Messaggio</label>
<div class="input-group input-group-lg">
<div class="input-group-prepend">
<span class="input-group-text" style="background: #218D96; border: none; border-radius: 0; color: white;">
<i class="fas fa-comment-alt"></i>
</span>
</div>
<textarea class="form-control" data-w-email="message" id="message" name="_form[extra][message]" required rows="4"></textarea>
</div>
</div>
</div>
<div class="book_item form-col--privacy">
<input class="form-check-input" id="privacy" required type="checkbox" value="">
<label class="form-check-label" for="privacy">
Acconsento al trattamento dei dati forniti per le finalità indicate dall\'informativa sulla
<a href="/privacy-policy" target="_blank">Privacy Policy</a>
</label>
</div>
<div class="form-col form-col--action">
<div class="book_item text-center">
<button class="btn btn-white submit" type="submit">Richiedi preventivo</button>
</div>
</div>
</div>
</div>
<div class="col-12">
<div class="w-error alert alert-danger text-center display-none">
</div>
<div class="w-success alert alert-success text-center display-none">
</div>
</div>
</div>
</div>
</form>
</section>
</div>
<div class="row">
<div class="col-12">
<h1 class="text-center">API</h1>
</div>
<div class="col-9 center-block">
<h2><code>POST</code> v01 - Email and form data submit {json}</h2>
<code>{{domain}}/api/v01/email/form/submit</code>
<p class="text-gray">Send an email with all form data for save it and send email to tenant access_token user</p>
<div class="mb-50">
<h4 class="pm-h4 auth-label"> Authorization <span class="auth-type">Bearer Token</span></h4>
<table class="pm-table docs-request-table">
<tbody>
<tr class="">
<td class="weight--medium">token</td>
<td>{{API_KEY}}
<div class="pm-markdown docs-request-table__desc"></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="mb-50">
<h4 class="pm-h4">Headers</h4>
<table class="pm-table docs-request-table">
<tbody>
<tr class="">
<td class="weight--medium">X-Lang</td>
<td>{{X-Lang}}
<div class="pm-markdown docs-request-table__desc"></div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="">
<h4 class="pm-h4 docs-request-body__title">Body <span class="text-gray">formdata</span></h4>
<table class="table table-bordered table-hover table-striped">
<tbody>
<tr class="">
<td class="weight--medium">checkin</td>
<td>25/08/2019
<div class="pm-markdown docs-request-table__desc">
<p>(string) Checkin date Italian format dd/mm/YYYY</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">checkout</td>
<td>30/08/2019
<div class="pm-markdown docs-request-table__desc">
<p>(string) Checkout date Italian format dd/mm/YYYY</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">email</td>
<div class="pm-markdown docs-request-table__desc"><p>(string) Email of sender</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">first_name</td>
<td>Artur
<div class="pm-markdown docs-request-table__desc"><p>(string) First name of sender</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">last_name</td>
<td>Postman
<div class="pm-markdown docs-request-table__desc"><p>(string) Last name of sender</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_form[extra][message]</td>
<td>TEST with Postman
<div class="pm-markdown docs-request-table__desc"><p>(string)[optional] TEXT of form request</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_form[extra][telephone]</td>
<td>1234567
<div class="pm-markdown docs-request-table__desc"><p>(string)[optional] TEXT of form request</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">adults</td>
<td>2
<div class="pm-markdown docs-request-table__desc"><p>(integer)[optional] Adults number</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">children</td>
<td>2
<div class="pm-markdown docs-request-table__desc"><p>(integer)[optional] Children number</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">children_age</td>
<td>3,6
<div class="pm-markdown docs-request-table__desc"><p>(string)[optional] Children age</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">type_id</td>
<td>
<div class="pm-markdown docs-request-table__desc">
<p>(integer)[optional] Id of the form data request type (1 - Camping, 2 - Village, 3 - )</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">lang_code</td>
<td>it
<div class="pm-markdown docs-request-table__desc">
<p>(string)[optional] ISO locale of form_data language (for response lang set X-Lang header)</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_email[to_email]</td>
<div class="pm-markdown docs-request-table__desc">
<p>(string)[optional] Email to which send (if diferent from the owner of acces_token an carbon copy will be sent to the owner also)</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_email[to_name]</td>
<td>Buonsito
<div class="pm-markdown docs-request-table__desc">
<p>(string)[optional] Name to which send (if to_email/to_name are ommitted the one of owner of access token will be used)</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_email[subject]</td>
<td>Custom subject of email (v1)
<div class="pm-markdown docs-request-table__desc">
<p>(string)[optional] Default is: Preventivo richiesto da/Estimate request from :name - :to_name :from_name - :to_name</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_email[extra][template]</td>
<td>forms.simple_html.base
<div class="pm-markdown docs-request-table__desc">
<p>(string)[optional] Template to use for send email default is: forms.simple_html.base</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">_email[extra][quote_structures]</td>
<td>2
<div class="pm-markdown docs-request-table__desc">
<p>[Custom] filed make sense only with campingenatura template</p>
</div>
</td>
</tr>
<tr class="">
<td class="weight--medium">verbose</td>
<td>true
<div class="pm-markdown docs-request-table__desc">
<p>(bool)[optional] Get the Exception message when debug an error</p>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<div class="row mt-200">
<code>
<pre class="w-json">
</pre>
</code>
</div>
</div>
<!-- @html5bp <script src="js/vendor/modernizr-3.6.0.min.js"></script>-->
<script crossorigin="anonymous" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script>window.jQuery || document.write('<script src="/node_modules/jquery/dist/jquery.min.js"><\/script>')</script>
<!-- Plugin with that withFront works -->
<script src="/node_modules/withfront/dist/js/libraries.min.js"></script> <!-- grunt uglify:libraries | for conf -->
<!-- Bs Date Picker https://github.com/uxsolutions/bootstrap-datepicker -->
<!--<link rel="stylesheet" href="node_modules/bootstrap-datepicker/dist/css/bootstrap-datepicker3.min.css"/> yet in dist/css/libraries.min.css
<script src="node_modules/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script> yet in dist/js/libraries.min.js -->
<script data-lang="it" id="bsdp_lang_code" src="/node_modules/bootstrap-datepicker/dist/locales/bootstrap-datepicker.it.min.js"></script>
<!-- js-cookie https://github.com/js-cookie/js-cookie -->
<!--<script src="node_modules/js-cookie/src/js.cookie.js"></script> yet in dist/js/libraries.min.js -->
<!-- Nicescroll https://github.com/inuyaksa/jquery.nicescroll -->
<!--<script src="node_modules/jquery.nicescroll/dist/jquery.nicescroll.min.js"></script> yet in dist/js/libraries.min.js -->
<!-- end# Plugin with that withFront works -->
<!-- w-email (withEmail) -->
<script src="/js/w-email.js"></script>
<script>
// Configure wOptions for override withOptions: debug:false, wAppearBottomButton:false, go2top:true
// enable wAppearBottomButton cause it disabled by default
var wOptions = {
debug: true, // enable/disable Debug mode [defaule:false]
wAppearBottomButton: false, // enable/disable widget/w-appear_btn.js [defaule:false]
go2top: false, // enable/disable widget/w-go2top.js [defaule:true]
htmlNicescroll: false, // [defaule:false]
whatsappWeb: false, // replace WhatsApp mobile with Desktop on Desktop [defaule:true]
}
</script>
<script src="/node_modules/withfront/dist/js/w-plugins.min.js"></script>
<!-- @html5bp <script src="js/plugins.js"></script> for custom js -->
<!-- Google Analytics: change UA-XXXXX-Y to be your site's ID. -->
<!-- @html5bp <script>
window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;
ga('create','UA-XXXXX-Y','auto');ga('send','pageview')
</script>-->
<!-- @html5bp <script src="https://www.google-analytics.com/analytics.js" async defer></script>-->
</body>
</html>