+ +

Pending name changes

% for s in students: - + + + + + + % endfor
${s.oldname}${s.newname}[Change]
${s['old_name']}${s['new_name']|h}${s['email']|h}${s['rationale']|h}[Confirm] + [Reject]
diff --git a/templates/profile.html b/templates/profile.html index 9b79ce9780..9c76ac9b2c 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -102,13 +102,13 @@ $(function() { var new_name = $('#new_name_field').val(); var rationale = $('#name_rationale_field').val(); - postJSON('/change_email',{"new_name":new_name, + postJSON('/change_name',{"new_name":new_name, "rationale":rationale}, function(data){ if(data.success){ - $("#change_email").html("Request submitted. We'll send you an e-mail if we approve the change or need further information."); + $("#apply_name_change").html("Request submitted. We'll send you an e-mail if we approve the change or need further information."); } else { - $("#change_email_error").html(data.error); + $("#apply_name_change_error").html(data.error); } }); log_event("profile", {"type":"name_change_request", @@ -190,7 +190,7 @@ $(function() {