_dashboard_prompt_midcourse_reverify.html 3.44 KB
Newer Older
1 2
<%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %>
3
% if reverifications["must_reverify"]:
4 5 6 7 8 9 10 11
  % if len(reverifications["must_reverify"]) > 1:

  <div class="wrapper-msg urgency-high">
    <div class="msg msg-reverify has-actions">
        <div class="msg-content">
          <h2 class="title">${_("You need to re-verify to continue")}</h2>
          <div class="copy">
            <p class="activation-message">
12
            ${_("People change, and each year we ask you to re-verify your identity for our verified certificates. Take a minute now to help us renew your identity.")}
13 14 15 16
            </p>
            <ul class="reverify-list">
              % for item in reverifications["must_reverify"]:
                <li class="item">
17 18 19 20
                  ${_('{course_name}: Re-verify by {date}').format(
		      course_name=u"<strong>{0}</strong>".format(item.course_name),
		      date=item.date
		  )}
21 22 23 24
                </li>
              % endfor
            </ul>
          </div>
25
        </div>
26
        <nav class="nav-actions">
27
          <h3 class="sr">${_('Notification Actions')}</h3>
28 29 30 31
          <ul>
            <li class="nav-item"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify_dash')}">Re-verify</a></li>
          </ul>
        </nav>
32 33
      </div>
    </div>
34 35 36 37 38 39 40 41 42

  % elif reverifications["must_reverify"]:
  <div class="wrapper-msg urgency-high">
    <div class="msg msg-reverify has-actions">
        <div class="msg-content">
          <h2 class="title">${_("You need to re-verify to continue")}</h2>
          % for item in reverifications["must_reverify"]:
          <div class="copy">
            <p class='activation-message'>
43 44 45 46
              ${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format(
	          course_name=u"<strong>{}</strong>".format(item.course_name),
	          date=item.date
	      )}
47 48 49 50
            </p>
          </div>
        </div>
        <nav class="nav-actions">
51
          <h3 class="sr">${_('Notification Actions')}</h3>
52 53 54 55 56 57 58 59
          <ul>
            <li class="nav-item"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify_dash')}">Re-verify</a></li>
          </ul>
        </nav>
      </div>
    </div>
  % endfor
  %endif
60
%endif
61

62
%if reverifications["denied"] and denied_banner:
63
<div class="wrapper-msg urgency-high" id="failed-verification-banner">
64
  <div class="msg msg-reverify is-dismissable">
65 66
      <div class="msg-content">
        <h2 class="title">${_("Your re-verification failed")}</h2>
67
        % for item in reverifications["denied"]:
68
        % if item.display:
69 70
        <div class="copy">
          <p class='activation-message'>
71 72 73 74 75 76
            ${_('Your re-verification for {course_name} failed and you are no longer eligible for a Verified Certificate.  If you think this is in error, please contact us at {email}.').format(
	        course_name=u"<strong>{}</strong>".format(item.course_name),
	        email=u'<a class="contact-link" href="mailto:{email}">{email}</a>'.format(
                    email=billing_email
	        )
	    )}
77 78
          </p>
        </div>
79 80
        % endif
        % endfor
81
      </div>
82
      <div class="action-dismiss">
83
        <button class="button-dismiss" id="failed-verification-button-dismiss"><i class="icon fa fa-times-circle"></i> <span class="sr">${_('Dismiss')}</span></button>
84
      </div>
85 86
    </div>
  </div>
87
%endif