Commit 63eeea69 by Kyle Fiedler

Merged in templates_ernie_leanmodal_closebox

parents 7cb316e9 30518d2f
...@@ -72,7 +72,7 @@ $(function() { ...@@ -72,7 +72,7 @@ $(function() {
$('#pwd_reset_button').click(function() { $('#pwd_reset_button').click(function() {
$.post('/password_reset/',{ "csrfmiddlewaretoken" : "${ csrf }", $.post('/password_reset/',{ "csrfmiddlewaretoken" : "${ csrf }",
"email" : $('#id_email').val()}, function(data){ "email" : $('#id_email').val()}, function(data){
$('#pwd_reset').html(data); $("#password_reset_complete_link").click();
log_event("profile", {"type":"password_send"}); log_event("profile", {"type":"password_send"});
}); });
}); });
...@@ -155,9 +155,7 @@ $(function() { ...@@ -155,9 +155,7 @@ $(function() {
<div id="change_password_pop"> <div id="change_password_pop">
<h2>Password change</h2> <h2>Password change</h2>
<p>We'll e-mail you a password reset link at ${email}. Follow <p>We'll e-mail a password reset link to ${email}.</p>
the link in the confirmation email to change your
password.</p>
<input id="id_email" type="hidden" name="email" maxlength="75" value="${email}" /> <input id="id_email" type="hidden" name="email" maxlength="75" value="${email}" />
<input type="submit" id="pwd_reset_button" value="Reset Password" /> <input type="submit" id="pwd_reset_button" value="Reset Password" />
...@@ -167,3 +165,8 @@ $(function() { ...@@ -167,3 +165,8 @@ $(function() {
</div> </div>
</section> </section>
<div id="password_reset_complete" class="leanModal_box">
<a href="#password_reset_complete" rel="leanModal" id="password_reset_complete_link"></a>
<h1>Password Reset Email Sent</h1>
An email has been sent to ${email}. Follow the link in the email to change your password.
</div>
...@@ -18,12 +18,30 @@ div.leanModal_box { ...@@ -18,12 +18,30 @@ div.leanModal_box {
background: #fff; background: #fff;
padding: lh(2); padding: lh(2);
a.modal_close {
position: absolute;
top: 12px;
right: 12px;
display: block;
width: 14px;
height: 14px;
z-index: 2;
color: #aaa;
font-style: normal;
&:hover{
text-decoration: none;
color: $mit-red;
}
}
h1 { h1 {
font-size: 24px; font-size: 24px;
margin-top: 0; margin-top: 0;
padding-bottom: lh(); padding-bottom: lh();
border-bottom: 1px solid #eee; border-bottom: 1px solid #eee;
margin-bottom: lh(); margin-bottom: lh();
text-align: left;
} }
&#enroll { &#enroll {
......
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