photo_verification.html 21.7 KB
Newer Older
1 2
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
3
<%! from lms.envs.common import TECH_SUPPORT_EMAIL %>
4
<%inherit file="../main.html" />
5
<%namespace name='static' file='/static_content.html'/>
6

7
<%block name="bodyclass">register verification-process step-photos ${'is-upgrading' if upgrade else ''}</%block>
8
<%block name="pagetitle">
9 10 11 12 13 14
    %if upgrade:
      ${_("Upgrade Your Registration for {} | Verification").format(course_name)}
    %else:
      ${_("Register for {} | Verification").format(course_name)}
    %endif
</%block>
15 16

<%block name="js_extra">
17 18
<script src="${static.url('js/vendor/responsive-carousel/responsive-carousel.js')}"></script>
<script src="${static.url('js/vendor/responsive-carousel/responsive-carousel.keybd.js')}"></script>
19
<script src="${static.url('js/verify_student/photocapture.js')}"></script>
20 21 22
</%block>

<%block name="content">
23

24
<div id="no-webcam" style="display: none;" class="wrapper-msg wrapper-msg-activate">
25 26 27 28 29
  <div class=" msg msg-activate">
    <i class="msg-icon icon-warning-sign"></i>
    <div class="msg-content">
      <h3 class="title">${_("No Webcam Detected")}</h3>
      <div class="copy">
30
        <p>${_("You don't seem to have a webcam connected. Double-check that your webcam is connected and working to continue registering, or select to {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="{}">'.format(course_modes_choose_url), a_end="</a>")}</p>
31 32 33 34 35
      </div>
    </div>
  </div>
</div>

36
<div id="no-flash" style="display: none;" class="wrapper-msg wrapper-msg-activate">
37 38 39 40 41 42 43 44 45 46 47
  <div class=" msg msg-activate">
    <i class="msg-icon icon-warning-sign"></i>
    <div class="msg-content">
      <h3 class="title">${_("No Flash Detected")}</h3>
      <div class="copy">
        <p>${_("You don't seem to have Flash installed. {a_start} Get Flash {a_end} to continue your registration.").format(a_start='<a rel="external" href="http://get.adobe.com/flashplayer/">', a_end="</a>")}</p>
      </div>
    </div>
  </div>
</div>

48 49 50 51 52 53
<div id="order-error" style="display: none;" class="wrapper-msg wrapper-msg-activate">
  <div class=" msg msg-activate">
    <i class="msg-icon icon-warning-sign"></i>
    <div class="msg-content">
      <h3 class="title">${_("Error processing your order")}</h3>
      <div class="copy">
54
        <p>${_("Oops! Something went wrong. Please confirm your details again and click the button to move on to payment. If you are still having trouble, please try again later.")}</p>
55 56 57 58
      </div>
    </div>
  </div>
</div>
59

60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
<div id="photo-error" style="display: none;" class="wrapper-msg wrapper-msg-activate">
  <div class=" msg msg-activate">
    <i class="msg-icon icon-warning-sign"></i>
    <div class="msg-content">
      <h3 class="title">${_("Error processing your order")}</h3>
      <div class="copy">
        <p>${_("We're sorry, there has been an error on this page. Please refresh the page and retake your photos. "
               "If you are still having trouble, please contact us at "
               "{email_address}").format(
                    email_address='<a href="mailto:{technical_email}">{technical_email}</a>'.format(
                        technical_email=TECH_SUPPORT_EMAIL
                    )
               )}
        </p>
      </div>
    </div>
  </div>
</div>

79
<div class="container">
80 81
  <section class="wrapper">

82
    <%include file="_verification_header.html" args="course_name=course_name" />
83

84 85
    <div class="wrapper-progress">
      <section class="progress">
86
        <h3 class="sr title">${_("Your Progress")}</h3>
87 88 89

        <ol class="progress-steps">
          <li class="progress-step is-completed" id="progress-step0">
90
            <span class="wrapper-step-number"><span class="step-number">0</span></span>
91
            <span class="step-name">${_("Intro")}</span>
92 93
          </li>

94 95
          <li class="progress-step is-current" id="progress-step1">
            <span class="wrapper-step-number"><span class="step-number">1</span></span>
96
            <span class="step-name"><span class="sr">${_("Current Step: ")}</span>${_("Take Photo")}</span>
97 98 99
          </li>

          <li class="progress-step" id="progress-step2">
100
            <span class="wrapper-step-number"><span class="step-number">2</span></span>
101
            <span class="step-name">${_("Take ID Photo")}</span>
102 103 104
          </li>

          <li class="progress-step" id="progress-step3">
105
            <span class="wrapper-step-number"><span class="step-number">3</span></span>
106
            <span class="step-name">${_("Review")}</span>
107 108 109
          </li>

          <li class="progress-step" id="progress-step4">
110
            <span class="wrapper-step-number"><span class="step-number">4</span></span>
111
            <span class="step-name">${_("Make Payment")}</span>
112 113
          </li>

114
          <li class="progress-step progress-step-icon" id="progress-step5">
115 116 117
            <span class="wrapper-step-number"><span class="step-number">
              <i class="icon-ok"></i>
            </span></span>
118
            <span class="step-name">${_("Confirmation")}</span>
119 120
          </li>
        </ol>
121 122 123 124

        <span class="progress-sts">
          <span class="progress-sts-value"></span>
        </span>
125
      </section>
126 127
    </div>

128 129 130 131
    <div class="wrapper-content-main">
      <article class="content-main">

        <section class="wrapper carousel"  data-transition="slide">
132
          <div id="wrapper-facephoto" class="wrapper-view block-photo">
133
            <div class="facephoto view">
134
              <h3 class="title">${_("Take Your Photo")}</h3>
135
              <div class="instruction">
136
                <p>${_("Use your webcam to take a picture of your face so we can match it with the picture on your ID.")}</p>
137 138 139 140
              </div>

              <div class="wrapper-task">
                <div id="facecam" class="task cam">
141
                  <div class="placeholder-cam" id="face_capture_div">
142 143

                    <div class="placeholder-art">
144
                      <p class="copy">${_("Don't see your picture? Make sure to allow your browser to use your camera when it asks for permission.")}</p>
145 146 147
                    </div>

                    <video id="face_video" autoplay></video><br/>
148 149 150 151 152 153 154
                    <canvas id="face_canvas" style="display:none;" width="640" height="480"></canvas>
                  </div>

                  <div class="controls photo-controls">
                    <ul class="list-controls">
                      <li class="control control-redo" id="face_reset_button">
                        <a class="action action-redo" href="">
155
                          <i class="icon-undo"></i> <span class="sr">${_("Retake")}</span>
156 157 158 159 160
                        </a>
                      </li>

                      <li class="control control-do" id="face_capture_button">
                        <a class="action action-do" href="">
161
                          <i class="icon-camera"></i><span class="sr">${_("Take photo")}</span>
162 163 164 165 166
                        </a>
                      </li>

                      <li class="control control-approve" id="face_approve_button">
                        <a class="action action-approve" href="">
167
                          <i class="icon-ok"></i> <span class="sr">${_("Looks good")}</span>
168 169 170 171 172 173 174
                        </a>
                      </li>
                    </ul>
                  </div>
                </div>

                <div class="wrapper-help">
175
                  <div class="help help-task photo-tips facetips">
176
                    <h4 class="title">${_("Tips on taking a successful photo")}</h4>
177 178

                    <div class="copy">
179
                      <ul class="list-help">
180 181 182
                        <li class="help-item">${_("Make sure your face is well-lit")}</li>
                        <li class="help-item">${_("Be sure your entire face is inside the frame")}</li>
                        <li class="help-item">${_("Can we match the photo you took with the one on your ID?")}</li>
183 184
                        <li class="help-item">${_("Once in position, use the camera button")} <span class="example">(<i class="icon-camera"></i>)</span> ${_("to capture your picture")}</li>
                        <li class="help-item">${_("Use the checkmark button")} <span class="example">(<i class="icon-ok"></i>)</span> ${_("once you are happy with the photo")}</li>
185 186 187 188
                      </ul>
                    </div>
                  </div>

189
                  <div class="help help-faq facefaq">
190
                    <h4 class="sr title">${_("Common Questions")}</h4>
191 192 193

                    <div class="copy">
                      <dl class="list-faq">
194
                        <dt class="faq-question">${_("Why do you need my photo?")}</dt>
195
                        <dd class="faq-answer">${_("As part of the verification process, we need your photo to confirm that you are you.")}</dd>
196

197 198
                        <dt class="faq-question">${_("What do you do with this picture?")}</dt>
                        <dd class="faq-answer">${_("We only use it to verify your identity.  It is not displayed anywhere.")}</dd>
199 200 201 202 203 204 205
                        %if "professional" not in modes_dict:
                          <dt class="faq-question">${_("What if my camera isn't working?")}</dt>
                            %if upgrade:
                              <dd class="faq-answer">${_("You can always continue to audit the course without verifying.")}</dd>
                            %else:
                              <dd class="faq-answer">${_("You can always {a_start} audit the course for free {a_end} without verifying.").format(a_start='<a rel="external" href="{}">'.format(course_modes_choose_url), a_end="</a>")}</dd>
                            %endif
206
                        %endif
207 208 209 210 211 212
                      </dl>
                    </div>
                  </div>
                </div>
              </div>

213
              <nav class="nav-wizard" id="face_next_button_nav">
214
                <span class="help help-inline">${_("Once you verify your photo looks good, you can move on to step 2.")}</span>
215 216 217

                <ol class="wizard-steps">
                  <li class="wizard-step">
218
                    <a id="face_next_link" class="next action-primary" href="#next" aria-hidden="true" title="Next">${_("Go to Step 2: Take ID Photo")}</a>
219 220 221 222 223 224 225
                  </li>
                </ol>
              </nav>

            </div> <!-- /view -->
          </div> <!-- /wrapper-view -->

226
          <div id="wrapper-idphoto" class="wrapper-view block-photo">
227
            <div class="idphoto view">
228
              <h3 class="title">${_("Show Us Your ID")}</h3>
229
              <div class="instruction">
230
                <p>${_("Use your webcam to take a picture of your ID so we can match it with your photo and the name on your account.")}</p>
231 232 233 234
              </div>

              <div class="wrapper-task">
                <div id="idcam" class="task cam">
235
                  <div class="placeholder-cam" id="photo_id_capture_div">
236 237

                    <div class="placeholder-art">
238
                      <p class="copy">${_("Don't see your picture? Make sure to allow your browser to use your camera when it asks for permission.")}</p>
239 240 241
                    </div>

                    <video id="photo_id_video" autoplay></video><br/>
242 243 244 245 246 247 248
                    <canvas id="photo_id_canvas" style="display:none;" width="640" height="480"></canvas>
                  </div>

                  <div class="controls photo-controls">
                    <ul class="list-controls">
                      <li class="control control-redo" id="photo_id_reset_button">
                        <a class="action action-redo" href="">
249
                          <i class="icon-undo"></i> <span class="sr">${_("Retake")}</span>
250 251 252 253 254
                        </a>
                      </li>

                      <li class="control control-do" id="photo_id_capture_button">
                        <a class="action action-do" href="">
255
                          <i class="icon-camera"></i> <span class="sr">${_("Take photo")}</span>
256 257 258 259 260
                        </a>
                      </li>

                      <li class="control control-approve" id="photo_id_approve_button">
                        <a class="action action-approve" href="">
261
                          <i class="icon-ok"></i> <span class="sr">${_("Looks good")}</span>
262 263 264 265 266 267 268
                        </a>
                      </li>
                    </ul>
                  </div>
                </div>

                <div class="wrapper-help">
269
                  <div class="help help-task photo-tips idtips">
270
                    <h4 class="title">${_("Tips on taking a successful photo")}</h4>
271 272

                    <div class="copy">
273 274 275 276 277 278
                      <ul class="list-help">
                        <li class="help-item">${_("Make sure your ID is well-lit")}</li>
                        <li class="help-item">${_("Check that there isn't any glare")}</li>
                        <li class="help-item">${_("Ensure that you can see your photo and read your name")}</li>
                        <li class="help-item">${_("Try to keep your fingers at the edge to avoid covering important information")}</li>
                        <li class="help-item">${_("Acceptable IDs include drivers licenses, passports, or other goverment-issued IDs that include your name and photo")}</li>
279 280
                        <li class="help-item">${_("Once in position, use the camera button")} <span class="example">(<i class="icon-camera"></i>)</span> ${_("to capture your ID")}</li>
                        <li class="help-item">${_("Use the checkmark button")} <span class="example">(<i class="icon-ok"></i>)</span> ${_("once you are happy with the photo")}</li>
281 282 283 284
                      </ul>
                    </div>
                  </div>

285
                  <div class="help help-faq facefaq">
286
                    <h4 class="sr title">${_("Common Questions")}</h4>
287 288 289

                    <div class="copy">
                      <dl class="list-faq">
290 291
                        <dt class="faq-question">${_("Why do you need a photo of my ID?")}</dt>
                        <dd class="faq-answer">${_("We need to match your ID with your photo and name to confirm that you are you.")}</dd>
292

293 294
                        <dt class="faq-question">${_("What do you do with this picture?")}</dt>
                        <dd class="faq-answer">${_("We encrypt it and send it to our secure authorization service for review. We use the highest levels of security and do not save the photo or information anywhere once the match has been completed.")}</dd>
295 296 297 298 299 300
                      </dl>
                    </div>
                  </div>
                </div>
              </div>

301
              <nav class="nav-wizard" id="photo_id_next_button_nav">
302
                <span class="help help-inline">${_("Once you verify your ID photo looks good, you can move on to step 3.")}</span>
303 304 305

                <ol class="wizard-steps">
                  <li class="wizard-step">
306
                    <a id="photo_id_next_link" class="next action-primary" href="#next" aria-hidden="true" title="Next">${_("Go to Step 3: Review Your Info")}</a>
307 308 309 310 311 312
                  </li>
                </ol>
              </nav>
            </div> <!-- /view -->
          </div> <!-- /wrapper-view -->

313
          <div id="wrapper-review" class="wrapper-view">
314
            <div class="review view">
315
              <h3 class="title">${_("Verify Your Submission")}</h3>
316
              <div class="instruction">
317
                <p>${_("Make sure we can verify your identity with the photos and information below.")}</p>
318 319 320 321 322
              </div>

              <div class="wrapper-task">
                <ol class="review-tasks">

323
                  <li class="review-task review-task-photos">
324
                    <h4 class="title">${_("Review the Photos You've Taken")}</h4>
325 326

                    <div class="copy">
327
                      <p>${_("Please review the photos and verify that they meet the requirements listed below.")}</p>
328 329 330 331 332
                    </div>

                    <ol class="wrapper-photos">
                      <li class="wrapper-photo">
                        <div class="placeholder-photo">
333
                          <img id="face_image" src=""/>
334 335 336
                        </div>

                        <div class="help-tips">
337
                          <h5 class="title">${_("The photo above needs to meet the following requirements:")}</h5>
338
                          <ul class="list-help list-tips copy">
339 340
                            <li class="tip">${_("Be well lit")}</li>
                            <li class="tip">${_("Show your whole face")}</li>
341
                            <li class="tip">${_("The photo on your ID must match the photo of your face")}</li>
342 343 344 345 346 347
                          </ul>
                        </div>
                      </li>

                      <li class="wrapper-photo">
                       <div class="placeholder-photo">
348
                         <img id="photo_id_image" src=""/>
349 350 351
                       </div>

                       <div class="help-tips">
352
                         <h5 class="title">${_("The photo above needs to meet the following requirements:")}</h5>
353
                         <ul class="list-help list-tips copy">
354
                           <li class="tip">${_("Be readable (not too far away, no glare)")}</li>
355
                           <li class="tip">${_("The photo on your ID must match the photo of your face")}</li>
356
                           <li class="tip">${_("The name on your ID must match the name on your account below")}</li>
357 358 359 360
                         </ul>
                       </div>
                      </li>
                    </ol>
361 362 363

                    <div class="msg msg-retake msg-followup">
                      <div class="copy">
364
                        <p>${_("Photos don't meet the requirements?")}</p>
365 366 367 368
                      </div>

                      <ul class="list-actions">
                        <li class="action action-retakephotos">
369
                        <a class="retake-photos" href="javascript:void(0);" onclick="document.location.reload(true);">${_("Retake Your Photos")}</a>
370 371 372
                        </li>
                      </ul>
                    </div>
373 374
                  </li>

375 376 377 378 379 380 381 382 383 384 385 386 387 388
                  <li class="review-task review-task-name">
                    <h4 class="title">${_("Check Your Name")}</h4>

                    <div class="copy">
                        <p>${_("Make sure your full name on your edX account ({full_name}) matches your ID. We will also use this as the name on your certificate.").format(full_name="<span id='full-name'>" + user_full_name + "</span>")}</p>
                    </div>

                    <ul class="list-actions">
                      <li class="action action-editname">
                        <a class="edit-name" rel="leanModal" href="#edit-name">${_("Edit your name")}</a>
                      </li>
                    </ul>
                  </li>

389
                  %if len(suggested_prices) > 0:
390
                  <li class="review-task  review-task-contribution">
391
                    <h4 class="title">${_("Check Your Contribution Level")}</h4>
392 393

                    <div class="copy">
394
                      <p>${_("Please confirm your contribution for this course (min. $")} ${min_price} <span class="denomination-name">${currency}</span>${_("):")}</p>
395 396
                    </div>

397
                    <%include file="/course_modes/_contribution.html" args="suggested_prices=suggested_prices, currency=currency, chosen_price=chosen_price, min_price=min_price"/>
398

399
                  </li>
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415
                  %else:
                  <li class="review-task  review-task-contribution">
                    <h4 class="title">${_("Your Course Total")}</h4>
                    <div class="copy">
                      <p>${_("To complete your registration, you will need to pay:")}</p>
                    </div>
                    <ul class="list-fields contribution-options">
                        <li class="field contribution-option">
                            <span class="deco-denomination">$</span>
                            <span class="label-value">${chosen_price}</span>
                            <span class="denomination-name">${currency}</span>
                            </label>
                        </li>
                    </ul>
                  </li>
                  %endif
416 417 418 419
                </ol>
              </div>

              <nav class="nav-wizard">
420
                <div class="prompt-verify">
421
                  <h3 class="title">${_("Before proceeding, please confirm that your details match")}</h3>
422 423 424 425 426 427 428 429 430 431

                   <p class="copy"> ${_("Once you verify your details match the requirements, you can move on to step 4, payment on our secure server.")}</p>

                  <ul class="list-actions">
                    <li class="action action-verify">
                      <input type="checkbox" name="match" id="confirm_pics_good" />
                      <label for="confirm_pics_good">${_("Yes! My details all match.")}</label>
                    </li>
                  </ul>
                </div>
432 433

                <ol class="wizard-steps">
434
                  <li class="wizard-step step-proceed">
435 436 437
                    <form id="pay_form" method="post" action="${purchase_endpoint}">
                      <input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
                      <input type="hidden" name="course_id" value="${course_id | h}" />
438
                      <input class="action-primary disabled" type="button" id="pay_button" value="Go to Step 4: Secure Payment" name="payment">
439 440 441 442 443 444 445 446 447 448
                    </form>
                  </li>
                </ol>
              </nav>
            </div> <!-- /view -->
          </div> <!-- /wrapper-view -->
        </section>
      </article>
    </div> <!-- /wrapper-content-main -->

449
     <%include file="_verification_support.html" />
450 451 452
  </section>
</div>

453
<%include file="_modal_editname.html" />
454
</%block>