diff options
| author | Jesse Morgan <jesse@jesterpm.net> | 2014-02-01 12:59:08 -0800 | 
|---|---|---|
| committer | Jesse Morgan <jesse@jesterpm.net> | 2014-02-01 12:59:08 -0800 | 
| commit | 1b4197141a733b01aad3fe0d20c157c1a5514a04 (patch) | |
| tree | f389d077ef09a73c37847a0a24c503d82d60f722 /web | |
| parent | d652415282c691a98499432131b9bb65f3757df3 (diff) | |
Adding classes form to assessment results page.
Diffstat (limited to 'web')
| -rw-r--r-- | web/scripts/growth.js | 35 | ||||
| -rw-r--r-- | web/style.css | 6 | 
2 files changed, 41 insertions, 0 deletions
diff --git a/web/scripts/growth.js b/web/scripts/growth.js index fa5e3a9..8e56afd 100644 --- a/web/scripts/growth.js +++ b/web/scripts/growth.js @@ -247,3 +247,38 @@ function chapterComplete()      notice("You've completed this chapter!");      location.href += "/completed";  } + +function submitClassForm() +{ +    notice("Submitting Class Form..."); + +    var firstname = $("#firstname").val(); +    var lastname = $("#lastname").val(); +    var phone = $("#phone").val(); +    var email = $("#email").val(); + +    if (firstname == "") { +        alert("First name is required."); +        return false; +    } else if (lastname == "") { +        alert("Last name is required."); +        return false; +    } else if (phone == "") { +        alert("Phone is required."); +        return false; +    } else if (email == "") { +        alert("Email is required."); +        return false; +    } + +    $.ajax({ +        type: "POST", +        url: "http://www.myfoursquarechurch.com/grow-classes/#response", +        data: $("#classform").serialize(), +        dataType: html, +    }).always(function() { +        location.href="/account/training/introduction"; +    }); + +    return false; +} diff --git a/web/style.css b/web/style.css index d537d3a..a55377a 100644 --- a/web/style.css +++ b/web/style.css @@ -28,6 +28,12 @@ label {      display: inline-block;  } +label.check { +    text-align: left; +    width: 100%; +    display: block; +} +  blockquote {      font-style: italic;  }  | 
