Merge pull request #1836 from MITx/style/btalbot/password-reset-complete
edx.org - quick password reset complete view styling
This commit is contained in:
@@ -1,9 +1,66 @@
|
||||
{% load i18n %}
|
||||
{% load compressed %}
|
||||
{% load staticfiles %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<h1> Password reset complete </h1>
|
||||
<title>Your Password Reset is Complete</title>
|
||||
|
||||
{% block content %}
|
||||
{% compressed_css 'application' %}
|
||||
|
||||
Your password has been set. You may go ahead and <a href="/">log in</a> now.
|
||||
<!--[if lt IE 9]>
|
||||
<script src="{% static 'js/html5shiv.js' %}"></script>
|
||||
<![endif]-->
|
||||
|
||||
{% endblock %}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
|
||||
var view_name = 'view-passwordreset';
|
||||
|
||||
// adding js class for styling with accessibility in mind
|
||||
$('body').addClass('js').addClass(view_name);
|
||||
|
||||
// new window/tab opening
|
||||
$('a[rel="external"], a[class="new-vp"]')
|
||||
.click( function() {
|
||||
window.open( $(this).attr('href') );
|
||||
return false;
|
||||
});
|
||||
|
||||
// form field label styling on focus
|
||||
$("form :input").focus(function() {
|
||||
$("label[for='" + this.id + "']").parent().addClass("is-focused");
|
||||
}).blur(function() {
|
||||
$("label").parent().removeClass("is-focused");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
</head>
|
||||
|
||||
<body class="view-passwordreset">
|
||||
|
||||
<header class="global">
|
||||
<nav>
|
||||
<h1 class="logo">
|
||||
<a href="/"><img src="/static/images/header-logo.png"></a>
|
||||
</h1>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<section class="content-wrapper">
|
||||
<section class="passwordreset container">
|
||||
<section class="introduction">
|
||||
<header>
|
||||
<h1>Your Password Reset is Complete</h1>
|
||||
</header>
|
||||
</section>
|
||||
|
||||
{% block content %}
|
||||
<section role="main" class="content">
|
||||
<p>Your password has been set. You may go ahead and <a href="/">log in</a> now.</a>.</p>
|
||||
</section>
|
||||
{% endblock %}
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user