signup: Rename forms

(imported from commit cd7e90aa56da4982b627af757f8c4684f5103bc2)
This commit is contained in:
Keegan McAllister 2013-04-03 12:51:36 -04:00
parent c784457d36
commit 63d739ef17
3 changed files with 7 additions and 4 deletions

View File

@ -11,7 +11,8 @@ autofocus('#email');
<div class="pitch">
<p class="lead">Let's get started…</p>
<form class="form-inline" id="email_signup" name="email_form" action="{% url 'zephyr.views.accounts_home' %}" method="post">
<form class="form-inline" id="send_confirm" name="email_form"
action="{% url 'zephyr.views.accounts_home' %}" method="post">
{% csrf_token %}
<input type="text" class="email required" placeholder="Enter your work email address"
id="email" name="email"/>&nbsp;

View File

@ -8,7 +8,7 @@
<p>Still no email? We can <a href="#" id="resend_email_link">resend it</a>.<br/>
<small>(Just in case, take a look at your Spam folder.)</small></p>
<form id="email_signup" action="/accounts/home/" method="post">
<form id="resend_confirm" action="/accounts/home/" method="post">
{% csrf_token %}
<input type="hidden" class="email" id="email" value="{{ email }}" name="email"/>&nbsp;
</form>
@ -18,7 +18,9 @@
{{ block.super }}
<script type="text/javascript">
$(function() {
$("#resend_email_link").click(function () { $('#email_signup').submit(); });
$("#resend_email_link").click(function () {
$('#resend_confirm').submit();
});
});
</script>
{% endblock %}

View File

@ -18,7 +18,7 @@ $(function () {
}
});
$("#email_signup").validate({
$("#send_confirm").validate({
errorElement: "p",
errorClass: "validation-failed",
errorPlacement: function (error, element) {