Commit bda18f46 by Brian Jacobel

Convert password_reset_confirm.html to Mako

parent 5965091a
{% extends "main_django.html" %} ## mako
{% load i18n %}
{% block title %} <%! from django.utils.translation import ugettext as _ %>
<title>
{% blocktrans with platform_name=platform_name %}
Reset Your {{ platform_name }} Password
{% endblocktrans %}
</title>
{% endblock %}
{% block bodyextra %} <%inherit file="../main.html"/>
<script type="text/javascript" src="{{STATIC_URL}}js/student_account/password_reset.js"></script>
{% endblock %}
{% block bodyclass %}view-passwordreset{% endblock %} <%block name="title">
<title>${_("Reset Your {platform_name} Password".format(platform_name=platform_name))}</title>
</%block>
{% block body %} <%block name="bodyextra">
<script type="text/javascript" src="${STATIC_URL}js/student_account/password_reset.js"></script>
</%block>
<%block name="bodyclass">view-passwordreset</%block>
<%block name="body">
<div id="password-reset-confirm-container" class="login-register"> <div id="password-reset-confirm-container" class="login-register">
<section id="password-reset-confirm-anchor" class="form-type"> <section id="password-reset-confirm-anchor" class="form-type">
<div id="password-reset-confirm-form" class="form-wrapper" aria-live="polite"> <div id="password-reset-confirm-form" class="form-wrapper" aria-live="polite">
<div class="status submission-error {% if not err_msg %} hidden {% endif %}"> <div class="status submission-error ${'hidden' if err_msg is None else ''}">
<h4 class="message-title">{% trans "Error Resetting Password" %}</h4> <h4 class="message-title">${_("Error Resetting Password")}</h4>
<ul class="message-copy"> <ul class="message-copy">
{% if err_msg %} % if err_msg:
<li>{{err_msg}}</li> <li>${err_msg}</li>
{% else %} % else:
<li>{% trans "You must enter and confirm your new password." %}</li> <li>${_("You must enter and confirm your new password.")}</li>
<li>{% trans "The text in both password fields must match." %}</li> <li>${_("The text in both password fields must match.")}</li>
{% endif %} % endif
</ul> </ul>
</div> </div>
{% if validlink %}
<form role="form" id="passwordreset-form" method="post" action="">{% csrf_token %} % if validlink:
<form role="form" id="passwordreset-form" method="post" action="">
<div class="section-title lines"> <div class="section-title lines">
<h2> <h2>
<span class="text"> <span class="text">
{% trans "Reset Your Password" %} ${_("Reset Your Password")}
</span> </span>
</h2> </h2>
</div> </div>
<p class="action-label" id="new_password_help_text"> <p class="action-label" id="new_password_help_text">
{% trans "Enter and confirm your new password." %} ${_("Enter and confirm your new password.")}
</p> </p>
<div class="form-field new_password1-new_password1"> <div class="form-field new_password1-new_password1">
<label for="new_password1">{% trans "New Password" %}</label> <label for="new_password1">${_("New Password")}</label>
<input id="new_password1" type="password" name="new_password1" aria-describedby="new_password_help_text" /> <input id="new_password1" type="password" name="new_password1" aria-describedby="new_password_help_text" />
</div> </div>
<div class="form-field new_password2-new_password2"> <div class="form-field new_password2-new_password2">
<label for="new_password2">{% trans "Confirm Password" %}</label> <label for="new_password2">${_("Confirm Password")}</label>
<input id="new_password2" type="password" name="new_password2" /> <input id="new_password2" type="password" name="new_password2" />
</div> </div>
<button type="submit" class="action action-primary action-update js-reset">{% trans "Reset My Password" %}</button> <input type="hidden" id="csrf_token" name="csrfmiddlewaretoken" value="${csrf_token}">
<button type="submit" class="action action-primary action-update js-reset">${_("Reset My Password")}</button>
</form> </form>
{% else %} % else:
<div class="status submission-error"> <div class="status submission-error">
<h4 class="message-title">{% trans "Invalid Password Reset Link" %}</h4> <h4 class="message-title">${_("Invalid Password Reset Link")}</h4>
<ul class="message-copy"> <ul class="message-copy">
{% blocktrans with start_link='<a href="/login">' end_link='</a>' %} ${_((
This password reset link is invalid. It may have been used already. To reset your password, go to the {{ start_link }}sign-in{{ end_link }} page and select <strong>Forgot password</strong>. "This password reset link is invalid. It may have been used already. To reset your password, "
{% endblocktrans %} "go to the {start_link}sign-in{end_link} page and select <strong>Forgot password</strong>."
).format(start_link='<a href="/login">', end_link='</a>')
)}
</ul> </ul>
</div> </div>
{% endif %} % endif
</div> </div>
</section> </section>
</div> </div>
{% endblock %} </%block>
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