Added some styles for name and email change

This commit is contained in:
Kyle Fiedler
2012-03-21 17:06:37 -04:00
parent edfff32338
commit 84ac8a1d2a
4 changed files with 114 additions and 15 deletions

View File

@@ -88,7 +88,7 @@ $(function() {
"password":new_password},
function(data){
if(data.success){
$("#change_email").html("Request submitted. You'll receive a confirmation in your in-box.");
$("#change_email").html("<h1>Please verify your new email</h1><p>You'll receive a confirmation in your in-box. Please click the link in the email to confirm the email change.</p>");
} else {
$("#change_email_error").html(data.error);
}
@@ -107,7 +107,7 @@ $(function() {
"rationale":rationale},
function(data){
if(data.success){
$("#apply_name_change").html("Request submitted. We'll send you an e-mail if we approve the change or need further information.");
$("#apply_name_change").html("<h1>Your request has been submitted.</h1><p>We'll send you an e-mail if we approve the change or need further information. Please allow for up to a week for us to process your request.</p>");
} else {
$("#apply_name_change_error").html(data.error);
}
@@ -179,7 +179,7 @@ $(function() {
<header>
<h1>${name}</h1>
%if True:
<a href="#apply_name_change" rel="leanModal">Apply to change</a>
<a href="#apply_name_change" rel="leanModal">Edit</a>
%else:
(Name change pending)
%endif
@@ -191,7 +191,7 @@ $(function() {
</li>
<li>
E-mail: <strong>${email}</strong> <a href="#change_email" rel="leanModal" class="edit-email">Change</a>
E-mail: <strong>${email}</strong> <a href="#change_email" rel="leanModal" class="edit-email">Edit</a>
</li>
<li>
Location: <div id="location_sub">${location}</div><div id="description"></div> <a href="#" id="change_location">Edit</a>
@@ -229,8 +229,7 @@ $(function() {
<form id="change_name_form">
<div id="change_name_error"> </div>
<fieldset>
<p>A member of the course staff will review your request, and if approved, update your information. Please allow up to a week for your requested to be processed.</p>
<p>To uphold credibility of any MITx credits / certificates we want to approve of any name changes. A member of the course staff will review your request, and if approved, update your information. Please allow up to a week for your requested to be processed.</p>
<ul>
<li>
<label>Enter your desired full name, as it will appear on the MITx Certificate: </label>
@@ -265,7 +264,7 @@ $(function() {
<input id="new_email_password" value="" type="password" />
</li>
<li>
<p> We will send a confirmation to both ${email} and your new e-mail as part of the process.</p>
<p>We will send a confirmation to both ${email} and your new e-mail as part of the process.</p>
<input type="submit" id="submit_email_change" />
</li>
</ul>

View File

@@ -15,6 +15,21 @@ div.profile-wrapper {
h1 {
font-size: 18px;
margin: 0;
padding-right: 30px;
}
a {
position: absolute;
top: 13px;
right: lh(.5);
text-transform: uppercase;
font-size: 12px;
color: #999;
&:hover {
color: #555;
}
}
}