Commit 13d54c0d by Adam Palay

fix password reset templates

parent a7568fbf
<%! from django.utils.translation import ugettext as _ %>
{% load i18n %} {% load i18n %}
{% load compressed %} {% load compressed %}
{% load staticfiles %} {% load staticfiles %}
...@@ -6,7 +5,7 @@ ...@@ -6,7 +5,7 @@
<html> <html>
<head> <head>
<title>${_("Your Password Reset is Complete")}</title> <title>{% trans "Your Password Reset is Complete" %}</title>
{% compressed_css 'application' %} {% compressed_css 'application' %}
...@@ -54,13 +53,15 @@ ...@@ -54,13 +53,15 @@
<section class="passwordreset container"> <section class="passwordreset container">
<section class="introduction"> <section class="introduction">
<header> <header>
<h1>${_("Your Password Reset is Complete")}</h1> <h1>{% trans "Your Password Reset is Complete" %}</h1>
</header> </header>
</section> </section>
{% block content %} {% block content %}
<section role="main" class="content"> <section role="main" class="content">
<p>${_('Your password has been set. You may go ahead and {link_start}log in{link_end} now.').format(link_start='<a href="/login">', link_end='</a>')}</p> {% blocktrans with link_start='<a href="/login">' link_end='</a>' %}
Your password has been set. You may go ahead and {{ link_start }}log in{{ link_end }} now.
{% endblocktrans %}
</section> </section>
{% endblock %} {% endblock %}
</section> </section>
......
<%! from django.utils.translation import ugettext as _ %> {% load i18n %}
{% load compressed %} {% load compressed %}
{% load staticfiles %} {% load staticfiles %}
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>${_("Reset Your {platform_name} Password").format(platform_name=settings.PLATFORM_NAME)}</title> <title>{% trans "Reset Your edX Password" %}</title>
{% compressed_css 'application' %} {% compressed_css 'application' %}
...@@ -53,78 +53,77 @@ ...@@ -53,78 +53,77 @@
<section class="passwordreset container"> <section class="passwordreset container">
<section class="introduction"> <section class="introduction">
<header> <header>
<h1>${_("Reset Your {platform_name} Password").format(platform_name=settings.PLATFORM_NAME)}</h1> <h1>{% trans "Reset Your edX Password" %}</h1>
</header> </header>
</section> </section>
<section role="main" class="content"> <section role="main" class="content">
{% if validlink %} {% if validlink %}
<header> <header>
<h2 class="sr">${_("Password Reset Form")}</h2> <h2 class="sr">{% trans "Password Reset Form" %}</h2>
</header> </header>
<form role="form" id="passwordreset-form" method="post" data-remote="true" action="">{% csrf_token %} <form role="form" id="passwordreset-form" method="post" data-remote="true" action="">{% csrf_token %}
<!-- status messages --> <!-- status messages -->
<div role="alert" class="status message"> <div role="alert" class="status message">
<h3 class="message-title">${_("We're sorry, {platform_name} enrollment is not available in your region").format(platform_name=settings.PLATFORM_NAME)}</h3> <h3 class="message-title">{% trans "We're sorry, edX enrollment is not available in your region" %}</h3>
</div> </div>
<div role="alert" class="status message submission-error"> <div role="alert" class="status message submission-error">
<h3 class="message-title">${_("The following errors occured while processing your registration: ")}</h3> <h3 class="message-title">{% trans "The following errors occured while processing your registration: " %}</h3>
<ul class="message-copy"> <ul class="message-copy">
<li>${_("You must complete all fields.")}</li> <li>{% trans "You must complete all fields." %}</li>
<li>${_("The two password fields didn't match.")}</li> <li>{% trans "The two password fields didn't match." %}</li>
</ul> </ul>
</div> </div>
<div role="alert" class="status message system-error"> <div role="alert" class="status message system-error">
<h3 class="message-title">${_("We're sorry, our systems seem to be having trouble processing your password reset")}</h3> <h3 class="message-title">{% trans "We're sorry, our systems seem to be having trouble processing your password reset" %}</h3>
<p class="message-copy">${_('Someone has been made aware of this issue. Please try again shortly. Please <a href="{{MKTG_URL_CONTACT}}">contact us</a> about any concerns you have.')}</p> <p class="message-copy">{% trans 'Someone has been made aware of this issue. Please try again shortly. Please <a href="{{MKTG_URL_CONTACT}}">contact us</a> about any concerns you have.' %}</p>
</div> </div>
<p class="instructions"> <p class="instructions">
${_('Please enter your new password twice so we can verify you typed it in correctly. <br /> ' {% trans 'Please enter your new password twice so we can verify you typed it in correctly. <br /> Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.' %}
'Required fields are noted by <strong class="indicator">bold text and an asterisk (*)</strong>.')}
</p> </p>
<fieldset class="group group-form group-form-requiredinformation"> <fieldset class="group group-form group-form-requiredinformation">
<legend class="sr">${_("Required Information")}</legend> <legend class="sr">{% trans "Required Information" %}</legend>
<ol class="list-input"> <ol class="list-input">
<li class="field required password" id="field-new_password1"> <li class="field required password" id="field-new_password1">
<label for="new_password1">${_("Your New Password")}</label> <label for="new_password1">{% trans "Your New Password" %}</label>
<input id="new_password1" type="password" name="new_password1" placeholder="*****" /> <input id="new_password1" type="password" name="new_password1" placeholder="*****" />
</li> </li>
<li class="field required password" id="field-new_password2"> <li class="field required password" id="field-new_password2">
<label for="new_password2">${_("Your New Password Again")}</label> <label for="new_password2">{% trans "Your New Password Again" %}</label>
<input id="new_password2" type="password" name="new_password2" placeholder="*****" /> <input id="new_password2" type="password" name="new_password2" placeholder="*****" />
</li> </li>
</ol> </ol>
</fieldset> </fieldset>
<div class="form-actions"> <div class="form-actions">
<button name="submit" type="submit" id="submit" class="action action-primary action-update">${_("Change My Password")}</button> <button name="submit" type="submit" id="submit" class="action action-primary action-update">{% trans "Change My Password" %}</button>
</div> </div>
</form> </form>
{% else %} {% else %}
<header> <header>
<h2 class="sr">${_("Your Password Reset Was Unsuccessful")}</h2> <h2 class="sr">{% trans "Your Password Reset Was Unsuccessful" %}</h2>
</header> </header>
<p>${_('The password reset link was invalid, possibly because the link has already been used. Please return to the <a href="/login">login page</a> and start the password reset process again.')}</p> <p>{% trans 'The password reset link was invalid, possibly because the link has already been used. Please return to the <a href="/login">login page</a> and start the password reset process again.' %}</p>
{% endif %} {% endif %}
</section> </section>
<aside role="complementary"> <aside role="complementary">
<header> <header>
<h3 class="sr">${_("Password Reset Help")}</h3> <h3 class="sr">{% trans "Password Reset Help" %}</h3>
</header> </header>
<div class="cta cta-help"> <div class="cta cta-help">
<h3>${_("Need Help?")}</h3> <h3>{% trans "Need Help?" %}</h3>
<p>${_('View our <a href="{{MKTG_URL_FAQ}}">help section for contact information and answers to commonly asked questions</a>')}</p> <p>{% trans 'View our <a href="{{MKTG_URL_FAQ}}">help section for contact information and answers to commonly asked questions</a>' %}</p>
</div> </div>
</aside> </aside>
</section> </section>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment