|
8 | 8 | {% block nav %}<nav><ul><li><a href="/{{ ticket.id }}">{{ ticket.name }}</a></li></ul></nav>{% endblock %} |
9 | 9 | {% block content %} |
10 | 10 | <section class="waiver" id="waiver"> |
11 | | - <p>If you have any problems signing your waiver, you can |
12 | | - <a href="https://srnd-cdn.net/codeday/waiver.pdf" target="_blank">print and sign,</a> however you will need |
13 | | - to use the slow line at check-in.</p> |
14 | | - <iframe src="{{ url }}?hidenav=1&hidetext=1"></iframe> |
15 | | - <section class="notice"> |
16 | | - <section class="esign"> |
17 | | - <p>To submit this document online, you must agree to our e-signature policy as follows: This is a legally |
18 | | - binding document. You must be 18 or older to sign, and must be either the attendee, or the attendee's |
19 | | - parent or other legal guardian. We will store this document on our servers for a period of no less |
20 | | - than four years, and email you a copy which you will be responsible for retaining.</p> |
21 | | - </section> |
22 | | - <section class="powered"> |
23 | | - <a href="https://legalesign.com/"><img src="/assets/img/legalesign_powered.png" /></a> |
24 | | - </section> |
25 | | - </section> |
| 11 | + |
| 12 | + <style> |
| 13 | + @import url("https://srnd.org/assets/fonts/avenir-next.css"); |
| 14 | + .page { |
| 15 | + width: 720pt; |
| 16 | + padding: 0.5in; |
| 17 | + background-color: $color-white; |
| 18 | + border: 1px solid gray; |
| 19 | + font-family: 'Avenir Next', Helvetica, Arial, sans-serif; |
| 20 | + } |
| 21 | + .page, .page p, .page li, .page blockquote, .page strong, .page h1, .page h2 { |
| 22 | + font-size: 12pt; |
| 23 | + line-height: 18pt; |
| 24 | + } |
| 25 | + .page h2 { |
| 26 | + font-weight: 700; |
| 27 | + margin-top: 3rem; |
| 28 | + } |
| 29 | + .page strong { |
| 30 | + font-weight: 600; |
| 31 | + } |
| 32 | + .page header img { |
| 33 | + float: left; |
| 34 | + width: 50pt; |
| 35 | + height auto; |
| 36 | + } |
| 37 | + .page header h1 { |
| 38 | + float: left; |
| 39 | + padding-left: 2rem; |
| 40 | + font-weight: 700; |
| 41 | + margin-top: 0.2em; |
| 42 | + } |
| 43 | + .page header:after { |
| 44 | + content: ""; |
| 45 | + display: block; |
| 46 | + clear: both; |
| 47 | + } |
| 48 | + .c-forms-heading { |
| 49 | + display: none !important; |
| 50 | + } |
| 51 | + .c-forms-form label, .c-forms-form input[type="text"], .c-content { |
| 52 | + font-family: 'Avenir Next', Helvetica, Arial, sans-serif !important; |
| 53 | + font-size: 12pt !important; |
| 54 | + font-weight: 500; |
| 55 | + } |
| 56 | + .c-forms-form input[type="text"], .c-content { |
| 57 | + border-bottom: 1pt solid #ccc !important; |
| 58 | + font-style: italic !important; |
| 59 | + } |
| 60 | + .c-text-singleline input { |
| 61 | + position: relative; |
| 62 | + top: -17pt; |
| 63 | + } |
| 64 | + .c-calculation-singleline .c-content { |
| 65 | + position: relative; |
| 66 | + top: -9pt; |
| 67 | + } |
| 68 | + .c-text-singleline label, .c-calculation-singleline label { |
| 69 | + position: relative; |
| 70 | + top: 26pt |
| 71 | + } |
| 72 | + .c-label:after { |
| 73 | + display: none !important; |
| 74 | + } |
| 75 | + .c-signature .c-editor { |
| 76 | + position: relative; |
| 77 | + top: -14pt; |
| 78 | + } |
| 79 | + .c-signature label { |
| 80 | + position: relative; |
| 81 | + top: 100pt; |
| 82 | + z-index: 100; |
| 83 | + } |
| 84 | + .cognito > div { |
| 85 | + width: 0; |
| 86 | + height: 0; |
| 87 | + overflow: hidden; |
| 88 | + } |
| 89 | + </style> |
| 90 | + <div class="page" style="display:none"> |
| 91 | + <header> |
| 92 | + <img src="https://srnd.org/assets/img/logo.svg" /> |
| 93 | + <h1>PARTICIPANT AGREEMENT, WAIVER, and RELEASE of LIABILITY</h1> |
| 94 | + </header> |
| 95 | + {{ waiver_content|raw }} |
| 96 | + <div class="cognito"> |
| 97 | + <script src="https://services.cognitoforms.com/s/7hYXr3TPxk6yIpJxjqVoFQ"></script> |
| 98 | + <script>Cognito.load("forms", { id: "5", entry: { |
| 99 | + "Ticket": "{{ ticket.id|escape('js') }}", |
| 100 | + "ParticipantName": "{{ ticket.name|escape('js') }}", |
| 101 | + "Minor": "{% if ticket.is_minor %}yes{% else %}no{% endif %}", |
| 102 | + "EventName": "CodeDay", |
| 103 | + "SignerEmail": "{% if ticket.is_minor %}{{ ticket.parent_email|escape("js") }}{% else %}{{ ticket.email|escape("js") }}{% endif %}", |
| 104 | + {% if ticket.is_minor %} |
| 105 | + "Relationship": "Parent", |
| 106 | + {% endif %} |
| 107 | + }}, { |
| 108 | + success: function() { |
| 109 | + document.querySelector(".page").style.display = "block"; |
| 110 | + ExoJQuery(function() { |
| 111 | + ExoJQuery(document).on('afterSubmit.cognito', function(data) { |
| 112 | + document.querySelector(".page").style.display = "none"; |
| 113 | + document.querySelector(".alternative").style.display = "none"; |
| 114 | + document.querySelector(".success").style.display = "block"; |
| 115 | + }); |
| 116 | + }); |
| 117 | + } |
| 118 | + });</script> |
| 119 | + </div> |
| 120 | + </div> |
| 121 | + <div class="alternative"> |
| 122 | + <p>If you have any problems signing your waiver, you can |
| 123 | + <a href="https://srnd-cdn.net/codeday/waiver-{%if not ticket.is_minor %}non{% endif %}minor.pdf" target="_blank">print and sign.</a></p> |
| 124 | + </div> |
| 125 | + <div class="success" style="display: none"> |
| 126 | + <p>Thanks, your waiver has been successfully signed! You can download a copy at any time from your ticket page. <a href="/{{ticket.id}}">Click here to return to it.</a></p> |
| 127 | + </div> |
26 | 128 | </section> |
27 | 129 | {% endblock %} |
28 | | -{% block scripts %} |
29 | | - <script type="text/javascript"> |
30 | | - {% if ticket.age < 18 %}alert("Please get your parent to sign this waiver.");{% endif %} |
31 | | - window.addEventListener("message", function (event) { |
32 | | - var origin = event.origin || event.originalEvent.origin; |
33 | | - if (origin !== "https://app.legalesign.com") return; |
34 | | - if (event.data != "signed") return; |
35 | | - document.getElementById('waiver').innerHTML = "<p>Please wait...</p>"; |
36 | | - window.location.href = "syncwaiver"; |
37 | | - }, false); |
38 | | - </script> |
39 | | -{% endblock %} |
|
0 commit comments