From bc293b0517af14bc7a4351c7b2ea6a7c23ff258d Mon Sep 17 00:00:00 2001 From: Phil McGachey Date: Tue, 7 Apr 2015 10:39:26 -0400 Subject: [PATCH] [LTI Provider] Made reverifications parameter to courseware optional --- .../_dashboard_prompt_midcourse_reverify.html | 155 +++++++++--------- 1 file changed, 79 insertions(+), 76 deletions(-) diff --git a/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html b/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html index fb62add365..8b8f5a4ea5 100644 --- a/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html +++ b/lms/templates/dashboard/_dashboard_prompt_midcourse_reverify.html @@ -1,87 +1,90 @@ <%! from django.utils.translation import ugettext as _ %> <%! from django.core.urlresolvers import reverse %> -% if reverifications["must_reverify"]: - % if len(reverifications["must_reverify"]) > 1: -
-
-
-

${_("You need to re-verify to continue")}

-
-

- ${_("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.")} -

-
    +% if reverifications: + % if reverifications["must_reverify"]: + % if len(reverifications["must_reverify"]) > 1: + +
    +
    +
    +

    ${_("You need to re-verify to continue")}

    +
    +

    + ${_("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.")} +

    +
      + % for item in reverifications["must_reverify"]: +
    • + ${_('{course_name}: Re-verify by {date}').format( + course_name=u"{0}".format(item.course_name), + date=item.date + )} +
    • + % endfor +
    +
    +
    + +
    +
    + + % elif reverifications["must_reverify"]: +
    +
    +
    +

    ${_("You need to re-verify to continue")}

    % for item in reverifications["must_reverify"]: -
  • - ${_('{course_name}: Re-verify by {date}').format( - course_name=u"{0}".format(item.course_name), - date=item.date - )} -
  • - % endfor -
+
+

+ ${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format( + course_name=u"{}".format(item.course_name), + date=item.date + )} +

+
+
+
- -
- + % endfor + %endif + %endif - % elif reverifications["must_reverify"]: -
-
-
-

${_("You need to re-verify to continue")}

- % for item in reverifications["must_reverify"]: -
-

- ${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format( - course_name=u"{}".format(item.course_name), - date=item.date - )} -

+ %if reverifications["denied"] and denied_banner: +
+
+
+

${_("Your re-verification failed")}

+ % for item in reverifications["denied"]: + % if item.display: +
+

+ ${_('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"{}".format(item.course_name), + email=u'{email}'.format( + email=billing_email + ) + )} +

+
+ % endif + % endfor +
+
+
-
-
- % endfor - %endif -%endif - -%if reverifications["denied"] and denied_banner: -
-
-
-

${_("Your re-verification failed")}

- % for item in reverifications["denied"]: - % if item.display: -
-

- ${_('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"{}".format(item.course_name), - email=u'{email}'.format( - email=billing_email - ) - )} -

-
- % endif - % endfor -
-
- -
-
-
+ %endif %endif