mirror of https://github.com/zulip/zulip.git
signup: Rename forms
(imported from commit cd7e90aa56da4982b627af757f8c4684f5103bc2)
This commit is contained in:
parent
c784457d36
commit
63d739ef17
|
@ -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"/>
|
||||
|
|
|
@ -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"/>
|
||||
</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 %}
|
||||
|
|
|
@ -18,7 +18,7 @@ $(function () {
|
|||
}
|
||||
});
|
||||
|
||||
$("#email_signup").validate({
|
||||
$("#send_confirm").validate({
|
||||
errorElement: "p",
|
||||
errorClass: "validation-failed",
|
||||
errorPlacement: function (error, element) {
|
||||
|
|
Loading…
Reference in New Issue