-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ki Song
committed
Dec 31, 2016
1 parent
533ac44
commit 846b9a0
Showing
4 changed files
with
137 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,44 @@ | ||
{% extends "main_django_ava.html" %} | ||
{% load i18n %} | ||
## mako | ||
|
||
{% block title %} | ||
<title>{% trans "Your Password Reset is Complete" %}</title> | ||
{% endblock %} | ||
<%page expression_filter="h"/> | ||
|
||
{% block bodyextra %} | ||
<%! | ||
from django.utils.translation import ugettext as _ | ||
from openedx.core.djangolib.markup import HTML, Text | ||
%> | ||
|
||
<%inherit file="../main-ava.html"/> | ||
|
||
<%block name="title"> | ||
${_("Your Password Reset is Complete")} | ||
</%block> | ||
|
||
<%block name="bodyextra"> | ||
<script type="text/javascript"> | ||
$(function() { | ||
'use strict'; | ||
// adding js class for styling with accessibility in mind | ||
$('body').addClass('js'); | ||
}); | ||
</script> | ||
{% endblock %} | ||
</%block> | ||
|
||
{% block bodyclass %}view-passwordreset{% endblock %} | ||
<%block name="bodyclass">view-passwordreset</%block> | ||
|
||
{% block body %} | ||
<%block name="body"> | ||
<section class="full-section"> | ||
<div class="container clear-bottommargin clearfix"> | ||
<div class="col-md-12"> | ||
<div class="activation-message valid top-margin"> | ||
{% trans "Password Reset Complete" %} | ||
${_("Password Reset Complete")} | ||
</div> | ||
</div> | ||
<p class="activation-p"> | ||
{% blocktrans with link_start='<a href="/login">' link_end='</a>' %} | ||
Your password has been reset. {{ link_start }}Sign in to your account.{{ link_end }} | ||
{% endblocktrans %} | ||
${Text(_("Your password has been reset. {start_link}Sign-in to your account.{end_link}")).format( | ||
start_link=HTML('<a href="/login">'), | ||
end_link=HTML('</a>') | ||
)} | ||
</p> | ||
</div> | ||
</section> | ||
{% endblock %} | ||
</%block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,104 @@ | ||
{% extends "main_django_ava.html" %} | ||
{% load i18n %} | ||
## mako | ||
|
||
{% block title %} | ||
<title> | ||
{% blocktrans with platform_name=platform_name %} | ||
Reset Your {{ platform_name }} Password | ||
{% endblocktrans %} | ||
</title> | ||
{% endblock %} | ||
{% block bodyclass %}view-passwordreset{% endblock %} | ||
{% block body %} | ||
<%page expression_filter="h"/> | ||
|
||
<%! | ||
from django.utils.translation import ugettext as _ | ||
from openedx.core.djangolib.markup import HTML, Text | ||
%> | ||
|
||
<%inherit file="../main-ava.html"/> | ||
|
||
<%block name="title"> | ||
${_("Reset Your {platform_name} Password").format(platform_name=platform_name)} | ||
</%block> | ||
|
||
<%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"> | ||
<section class="login-page"> | ||
<div class="container"> | ||
<div class="col-md-8 col-md-offset-2"> | ||
<div id="password-reset-confirm-container" class="login-register"> | ||
<section id="password-reset-confirm-anchor" class="form-type"> | ||
<div id="password-reset-confirm-form" class="form-wrapper" aria-live="polite"> | ||
<div class="{% if not err_msg %} hidden {% endif %}"> | ||
<div class="${'hidden' if not err_msg else ''}"> | ||
<div role="alert"> | ||
<div class="alert-box"> | ||
<h4 class="message-title">{% trans "Error Resetting Password" %}</h4> | ||
<h4 class="message-title">${_("Error Resetting Password")}</h4> | ||
<ul class="message-copy"> | ||
{% if err_msg %} | ||
<li>{{err_msg}}</li> | ||
{% else %} | ||
<li>{% trans "You must enter and confirm your new password." %}</li> | ||
<li>{% trans "The text in both password fields must match." %}</li> | ||
{% endif %} | ||
% if err_msg: | ||
<li>${err_msg}</li> | ||
% else: | ||
<li>${_("You must enter and confirm your new password.")}</li> | ||
<li>${_("The text in both password fields must match.")}</li> | ||
% endif | ||
</ul> | ||
</div> | ||
</div> | ||
</div> | ||
{% if validlink %} | ||
|
||
% if validlink: | ||
<div class="login-form"> | ||
<form role="form" id="passwordreset-form" method="post" action="" >{% csrf_token %} | ||
<form role="form" id="passwordreset-form" method="post" action="" > | ||
<div class="login-title section-title lines"> | ||
<h2> | ||
<span class="text"> | ||
{% trans "Reset Your Password" %} | ||
${_("Reset Your Password")} | ||
</span> | ||
</h2> | ||
</div> | ||
|
||
<p class="action-label" id="new_password_help_text"> | ||
{% trans "Enter and confirm your new password." %} | ||
${_("Enter and confirm your new password.")} | ||
</p> | ||
<div class="row"> | ||
<div class="col-md-6"> | ||
<div class="input form-field new_password1-new_password1"> | ||
<input id="new_password1" type="password" name="new_password1" placeholder="New Password" aria-describedby="new_password_help_text" /> | ||
<input id="new_password1" type="password" name="new_password1" placeholder="${_("New Password")}" aria-describedby="new_password_help_text" /> | ||
</div> | ||
</div> | ||
<div class="col-md-6"> | ||
<div class="input form-field new_password2-new_password2"> | ||
<input id="new_password2" type="password" name="new_password2" placeholder="Confirm Password" /> | ||
<input id="new_password2" type="password" name="new_password2" placeholder="${_("Confirm Password")}" /> | ||
</div> | ||
</div> | ||
<input type="hidden" id="csrf_token" name="csrfmiddlewaretoken" value="${csrf_token}"> | ||
<div class="col-md-12"> | ||
<div class="input clearfix"> | ||
<div class="form-actions"> | ||
<button type="submit" class="action action-primary action-update js-reset submit-input grad-btn ln-tr">{% trans "Reset My Password" %}</button> | ||
<button type="submit" class="action action-primary action-update js-reset submit-input grad-btn ln-tr">${_("Reset My Password")}</button> | ||
</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
{% else %} | ||
% else: | ||
<div role="alert"> | ||
<div class="alert-box"> | ||
<h4 class="message-title">{% trans "Invalid Password Reset Link" %}</h4> | ||
<div class="alert-box" style="padding-bottom: 15px;"> | ||
<h4 class="message-title">${_("Invalid Password Reset Link")}</h4> | ||
<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>. | ||
{% endblocktrans %} | ||
${Text(_(( | ||
"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 {start_strong}Forgot password{end_strong}." | ||
))).format( | ||
start_link=HTML('<a href="/login">'), | ||
end_link=HTML('</a>'), | ||
start_strong=HTML('<strong>'), | ||
end_strong=HTML('</strong>') | ||
) | ||
} | ||
</ul> | ||
</div> | ||
</div> | ||
{% endif %} | ||
% endif | ||
</div> | ||
</section> | ||
</div> <!-- password reset container --> | ||
</div> <!-- end col --> | ||
</div> <!-- end container --> | ||
</section> | ||
{% endblock %} | ||
</%block> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters