From 9f093f985c2ad62043ab2ceee83a21eedbf1da2c Mon Sep 17 00:00:00 2001 From: Ernie Park Date: Wed, 1 Feb 2012 11:51:24 -0500 Subject: [PATCH] update password reset form and change inputs to type submit and chmod executable html files --- create_account.html | 4 +-- index.html | 3 +- login.html | 4 +-- marketing.html | 35 +++++++++++++++-------- password_reset_form.html | 9 ------ registration/password_reset_complete.html | 0 registration/password_reset_confirm.html | 0 registration/password_reset_done.html | 4 --- registration/password_reset_email.html | 0 registration/password_reset_form.html | 8 ++++-- sass/_leanmodal.scss | 2 +- 11 files changed, 35 insertions(+), 34 deletions(-) delete mode 100755 password_reset_form.html mode change 100755 => 100644 registration/password_reset_complete.html mode change 100755 => 100644 registration/password_reset_confirm.html mode change 100755 => 100644 registration/password_reset_done.html mode change 100755 => 100644 registration/password_reset_email.html mode change 100755 => 100644 registration/password_reset_form.html diff --git a/create_account.html b/create_account.html index f64ff106d5..dd0ed7f9f9 100644 --- a/create_account.html +++ b/create_account.html @@ -2,7 +2,7 @@

Enroll in 6.002 Circuits & Electronics

-
+
<% if 'error' in locals(): e = error %>
@@ -67,6 +67,6 @@ - +
diff --git a/index.html b/index.html index 8d73c3ad00..7b6c327ad4 100644 --- a/index.html +++ b/index.html @@ -103,7 +103,8 @@ $(function() { /* Handles when the user hits 'enroll'. Grabs form data. Does AJAX. Either shows error, or shows success. */ - $('#create_account_button').click(function() { + $('form#enroll_form').submit(function(e) { + e.preventDefault(); var submit_data={}; $.each($("[id^=ca_]"), function(index,value){ submit_data[value.name]=value.value; diff --git a/login.html b/login.html index eea9d7f26a..601df0a4c6 100644 --- a/login.html +++ b/login.html @@ -3,7 +3,7 @@ ${ error }

Log in to MITx

-
+
  1. @@ -21,7 +21,7 @@ ${ error }
- +
diff --git a/marketing.html b/marketing.html index c0e9f51590..dc712f008a 100644 --- a/marketing.html +++ b/marketing.html @@ -19,11 +19,11 @@ - + <%block name="headextra"/> @@ -66,14 +66,15 @@
<%include file="login.html" />
-
<%include file="password_reset_form.html" />
+
<%include file="registration/password_reset_form.html" />