Midcourse reverification: i18n fixes
Fixed i18n in templates
This commit is contained in:
@@ -489,6 +489,7 @@ def dashboard(request):
|
||||
'verification_msg': verification_msg,
|
||||
'show_refund_option_for': show_refund_option_for,
|
||||
'denied_banner': denied_banner,
|
||||
'billing_email': settings.PAYMENT_SUPPORT_EMAIL,
|
||||
}
|
||||
|
||||
return render_to_response('dashboard.html', context)
|
||||
|
||||
@@ -414,6 +414,7 @@ class MidCourseReverifyView(View):
|
||||
return render_to_response("verify_student/midcourse_photo_reverification.html", context)
|
||||
|
||||
|
||||
@login_required
|
||||
def midcourse_reverify_dash(request):
|
||||
"""
|
||||
Shows the "course reverification dashboard", which displays the reverification status (must reverify,
|
||||
@@ -436,6 +437,7 @@ def midcourse_reverify_dash(request):
|
||||
"user_full_name": user.profile.name,
|
||||
'reverifications': reverifications,
|
||||
'referer': request.META.get('HTTP_REFERER'),
|
||||
'billing_email': settings.PAYMENT_SUPPORT_EMAIL,
|
||||
}
|
||||
return render_to_response("verify_student/midcourse_reverify_dash.html", context)
|
||||
|
||||
|
||||
@@ -4,14 +4,14 @@
|
||||
<%inherit file="/main.html" />
|
||||
<%namespace name='static' file='/static_content.html'/>
|
||||
|
||||
<%block name="pagetitle">${_("{course.display_number_with_default} Course Info").format(course=course) | h}</%block>
|
||||
<%block name="pagetitle">${__("{course_number} Course Info").format(course_number=course.display_number_with_default)}</%block>
|
||||
|
||||
<%block name="headextra">
|
||||
<%static:css group='style-course-vendor'/>
|
||||
<%static:css group='style-course'/>
|
||||
</%block>
|
||||
|
||||
<%block name="title"><title>${_("{course.display_number_with_default} Course Info").format(course=course) | h}</title></%block>
|
||||
<%block name="title"><title>${_("{course_number} Course Info").format(course_number=course.display_number_with_default)}</title></%block>
|
||||
|
||||
<%include file="/dashboard/_dashboard_prompt_midcourse_reverify.html" />
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<%! from django.core.urlresolvers import reverse %>
|
||||
<!--TODO replace this with something a clever deisgn person approves of-->
|
||||
<!--TODO replace this with a shiny loopy thing to actually print out all courses-->
|
||||
|
||||
% if reverifications["must_reverify"]:
|
||||
% if len(reverifications["must_reverify"]) > 1:
|
||||
@@ -17,14 +15,14 @@
|
||||
<ul class="reverify-list">
|
||||
% for item in reverifications["must_reverify"]:
|
||||
<li class="item">
|
||||
${_('<strong>{course_name}</strong>: Re-verify by {date}').format(course_name=item.course_name, date=item.date)}
|
||||
${_('{course_name}: Re-verify by {date}').format(course_name="<strong>item.course_name</strong>", date=item.date)}
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="nav-actions">
|
||||
<h3 class="sr">Notification Actions</h3>
|
||||
<h3 class="sr">${_('Notification Actions')}</h3>
|
||||
<ul>
|
||||
<li class="nav-item"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify_dash')}">Re-verify</a></li>
|
||||
</ul>
|
||||
@@ -41,12 +39,12 @@
|
||||
% for item in reverifications["must_reverify"]:
|
||||
<div class="copy">
|
||||
<p class='activation-message'>
|
||||
${_('To continue in the ID Verified track in <strong>{course_name}</strong>, you need to re-verify your identity by {date}.').format(course_name=item.course_name, date=item.date)}
|
||||
${_('To continue in the ID Verified track in {course_name}, you need to re-verify your identity by {date}.').format(course_name="<strong>" + item.course_name + "</strong>", date=item.date)}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<nav class="nav-actions">
|
||||
<h3 class="sr">Notification Actions</h3>
|
||||
<h3 class="sr">${_('Notification Actions')}</h3>
|
||||
<ul>
|
||||
<li class="nav-item"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify_dash')}">Re-verify</a></li>
|
||||
</ul>
|
||||
@@ -67,12 +65,14 @@
|
||||
% if item.display:
|
||||
<div class="copy">
|
||||
<p class='activation-message'>
|
||||
${_('Your re-verification for <strong>{course_name}</strong> failed and you are no longer eligible for a Verified Certificate. If you think this is in error, please contact us at support@edx.org.').format(course_name=item.course_name)}
|
||||
${_('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="<strong>" + item.course_name+ "</strong>", email='<a class="contact-link" href="mailto:{email}">{email}</a>'.format(
|
||||
email=billing_email
|
||||
))}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="action-dismiss">
|
||||
<button class="button-dismiss" id="failed-verification-button-dismiss"><i class="icon-remove-sign"></i> <span class="sr">Dismiss</span></button>
|
||||
<button class="button-dismiss" id="failed-verification-button-dismiss"><i class="icon-remove-sign"></i> <span class="sr">${_('Dismiss')}</span></button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -154,7 +154,6 @@
|
||||
</div>
|
||||
|
||||
|
||||
<!-- TODO janky -->
|
||||
<img id="face_image" src="" style="display: none;"/>
|
||||
|
||||
<nav class="nav-wizard" id="face_id_next_button_nav">
|
||||
@@ -176,7 +175,7 @@
|
||||
<form id="reverify_form" method="post">
|
||||
<input type="hidden" name="csrfmiddlewaretoken" value="${ csrf_token }">
|
||||
<input type="hidden" name="course_id" value="${course_id}">
|
||||
<input class="action-primary disabled" type="button" id="midcourse_reverify_button" value="Submit photos & re-verify" name="payment">
|
||||
<input class="action-primary disabled" type="button" id="midcourse_reverify_button" value="${_('Submit photos & re-verify')}" name="payment">
|
||||
</form>
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
@@ -18,76 +18,76 @@
|
||||
|
||||
<div class="copy">
|
||||
|
||||
% if reverifications["must_reverify"]: # if 1st IF YOU HAVE REVERIFIES
|
||||
% if len(reverifications["must_reverify"]) > 1: # if 2nd IF YOU HAVE >1 REVERIFIES
|
||||
% if reverifications["must_reverify"]: # If you have reverifications to do
|
||||
% if len(reverifications["must_reverify"]) > 1: # If you have >1 reverifications
|
||||
<div class="wrapper-reverify-open">
|
||||
<h3 class="title">${_("You currently need to re-verify for the following courses:")}</h3>
|
||||
<ul class="reverification-list">
|
||||
% for course_id, course_name, course_number, date, status, display in reverifications["must_reverify"]: # for 1st
|
||||
% for item in reverifications["must_reverify"]: # for 1st
|
||||
<li class="item">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${course_name} (${course_number})</h3>
|
||||
<p class="deadline">Re-verify by <strong>${date}</strong></p>
|
||||
<h3 class="course-name">${item.course_name} (${item.course_number})</h3>
|
||||
<p class="deadline">${_('Re-verify by {date}').format(date="<strong>" + item.date + "</strong>")}</p>
|
||||
</div>
|
||||
<p class="reverify-status"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify', kwargs={'course_id': course_id})}">Re-verify for ${course_number}</a></p>
|
||||
</li>
|
||||
% endfor # closed for 1st
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
% elif reverifications["must_reverify"]: # con't 2nd if
|
||||
<div class="wrapper-reverify-open">
|
||||
<h3 class="title">${_("You currently need to re-verify for the following course:")}</h3>
|
||||
|
||||
<ul class="reverification-list">
|
||||
% for course_id, course_name, course_number, date, status, display in reverifications["must_reverify"]:
|
||||
<li class="item">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${course_name} (${course_number})</h3>
|
||||
<p class="deadline">Re-verify by <strong>${date}</strong></p>
|
||||
</div>
|
||||
<p class="reverify-status"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify', kwargs={'course_id': course_id})}">Re-verify for ${course_number}</a></p>
|
||||
<p class="reverify-status"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify', kwargs={'course_id': item.course_id})}">Re-verify for ${item.course_number}</a></p>
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
</div>
|
||||
%endif #close 2nd if
|
||||
|
||||
% else: # You only have one reverification
|
||||
<div class="wrapper-reverify-open">
|
||||
<h3 class="title">${_("You currently need to re-verify for the following course:")}</h3>
|
||||
|
||||
<ul class="reverification-list">
|
||||
% for item in reverifications["must_reverify"]:
|
||||
<li class="item">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${item.course_name} (${item.course_number})</h3>
|
||||
<p class="deadline">${_('Re-verify by {date}').format(date="<strong>" + item.date + "</strong>")}</p>
|
||||
</div>
|
||||
<p class="reverify-status"><a class="btn action-primary action-reverify" href="${reverse('verify_student_midcourse_reverify', kwargs={'course_id': item.course_id})}">Re-verify for ${item.course_number}</a></p>
|
||||
</li>
|
||||
% endfor
|
||||
</ul>
|
||||
</div>
|
||||
%endif
|
||||
% else:
|
||||
<div class="wrapper-reverify-open">
|
||||
<p class="title">${_("You have no re-verifications at present.")}</p>
|
||||
</div>
|
||||
%endif #close first if
|
||||
%endif
|
||||
|
||||
% if reverifications["pending"] or reverifications["approved"] or reverifications["denied"]: #open a 1st if
|
||||
% if reverifications["pending"] or reverifications["approved"] or reverifications["denied"]:
|
||||
<div class="wrapper-reverify-status">
|
||||
<h3 class="title">${_("The status of your submitted re-verifications:")}</h3>
|
||||
<ul class="reverification-list reverification-status">
|
||||
|
||||
% for course_id, course_name, course_number, date, status, display in reverifications["pending"]:
|
||||
% for item in reverifications["pending"]:
|
||||
<li class="item pending">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${course_name} (${course_number})</h3>
|
||||
<p class="deadline">Re-verify by <strong>${date}</strong></p>
|
||||
<h3 class="course-name">${item.course_name} (${item.course_number})</h3>
|
||||
<p class="deadline">${_('Re-verify by {date}').format(date="<strong>" + item.date + "</strong>")}</p>
|
||||
</div>
|
||||
<p class="reverify-status pending">${_("Pending")}</p>
|
||||
</li>
|
||||
% endfor
|
||||
|
||||
% for course_id, course_name, course_number, date, status, display in reverifications["approved"]:
|
||||
% for item in reverifications["approved"]:
|
||||
<li class="item complete">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${course_name} (${course_number})</h3>
|
||||
<p class="deadline">Re-verify by <strong>${date}</strong></p>
|
||||
<h3 class="course-name">${item.course_name} (${item.course_number})</h3>
|
||||
<p class="deadline">${_('Re-verify by {date}').format(date="<strong>" + item.date + "</strong>")}</p>
|
||||
</div>
|
||||
<p class="reverify-status complete">${_("Complete")}</p>
|
||||
</li>
|
||||
% endfor
|
||||
|
||||
% for course_id, course_name, course_number, date, status, display in reverifications["denied"]:
|
||||
% for item in reverifications["denied"]:
|
||||
<li class="item failed">
|
||||
<div class="course-info">
|
||||
<h3 class="course-name">${course_name} (${course_number})</h3>
|
||||
<p class="deadline">Re-verify by <strong>${date}</strong></p>
|
||||
<h3 class="course-name">${item.course_name} (${item.course_number})</h3>
|
||||
<p class="deadline">${_('Re-verify by {date}').format(date="<strong>" + item.date + "</strong>")}</p>
|
||||
</div>
|
||||
<p class="reverify-status">${_("Failed")}</p>
|
||||
</li>
|
||||
@@ -95,12 +95,18 @@
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
% endif # close a 1st if
|
||||
% endif
|
||||
|
||||
% if reverifications["must_reverify"]:
|
||||
<p class="support">Don't want to re-verify right now? <a href="${referer}">Return to where you left off <i class="icon-angle-right"></i></a></p>
|
||||
<p class="support">${_("Don't want to re-verify right now? {a_start}Return to where you left off{a_end}").format(
|
||||
a_start='<a href="{url}">'.format(url=referer),
|
||||
a_end="</a>",
|
||||
)}</p>
|
||||
% else:
|
||||
<p class="support"><a href="${referer}">Return to where you left off <i class="icon-angle-right"></i></a></p>
|
||||
<p class="support">${_("{a_start}Return to where you left off{a_end}").format(
|
||||
a_start='<a href="{url}">'.format(url=referer),
|
||||
a_end="</a>",
|
||||
)}</p>
|
||||
% endif
|
||||
|
||||
</div>
|
||||
@@ -128,7 +134,7 @@
|
||||
<div class="faq-item">
|
||||
<h3 class="title faq-question">${_("What if I have trouble with my re-verification?")}</h3>
|
||||
<div class="copy faq-answer">
|
||||
<p>Because of the short time that re-verification is open, you <strong>will not be able to correct a failed verification</strong>. If you think there was an error in the review, please contact us at <a href="stuff">support@edx.org</a>.</p>
|
||||
<p>${_('Because of the short time that re-verification is open, you <strong>will not be able to correct a failed verification</strong>. If you think there was an error in the review, please contact us at {email}').format(email='<a class="contact-link" href="mailto:{email}"">{email}</a>.'.format(email=billing_email))}</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
<%! from django.utils.translation import ugettext as _ %>
|
||||
<!--TODO replace this with something a clever deisgn person approves of-->
|
||||
<h2 class="title">${_("You need to re-verify to continue")}</h2>
|
||||
<p class='activation-message'>
|
||||
${_("To continue in the ID Verified track in {course}, you need to re-verify your identity by {date}. Go to URL.").format(email)}
|
||||
|
||||
Reference in New Issue
Block a user