2013-07-29 23:03:31 +02:00
|
|
|
|
{% extends "zerver/portico_signup.html" %}
|
2012-10-16 06:03:29 +02:00
|
|
|
|
|
|
|
|
|
{# Home page for not logged-in users. #}
|
|
|
|
|
|
|
|
|
|
{# This is where we pitch the app and solicit signups. #}
|
|
|
|
|
|
2012-10-16 05:49:53 +02:00
|
|
|
|
{% block portico_content %}
|
2012-09-25 22:58:59 +02:00
|
|
|
|
<script type="text/javascript">
|
2013-08-12 16:11:04 +02:00
|
|
|
|
$(function () {
|
|
|
|
|
autofocus('#email');
|
|
|
|
|
});
|
2012-09-25 22:58:59 +02:00
|
|
|
|
</script>
|
2012-08-28 21:56:46 +02:00
|
|
|
|
|
2013-09-13 06:06:10 +02:00
|
|
|
|
<div class="app register-page">
|
|
|
|
|
<div class="app-main register-page-container">
|
|
|
|
|
|
|
|
|
|
<div class="register-form">
|
2013-08-12 16:11:04 +02:00
|
|
|
|
<p class="lead">
|
2013-09-13 06:06:10 +02:00
|
|
|
|
<div class="register-page-header">Let's get started…</div>
|
2013-08-12 16:11:04 +02:00
|
|
|
|
</p>
|
2013-04-03 18:51:36 +02:00
|
|
|
|
<form class="form-inline" id="send_confirm" name="email_form"
|
2013-08-02 20:32:56 +02:00
|
|
|
|
action="{{ current_url }}" method="post">
|
2012-09-25 22:58:59 +02:00
|
|
|
|
{% csrf_token %}
|
2012-10-25 06:09:28 +02:00
|
|
|
|
<input type="text" class="email required" placeholder="Enter your work email address"
|
2013-09-13 06:06:10 +02:00
|
|
|
|
id="email" name="email"/>
|
|
|
|
|
<input type="submit" class="btn btn-primary btn-large register-button" value="Sign up"/>
|
2012-09-25 22:58:59 +02:00
|
|
|
|
</form>
|
|
|
|
|
<div id="errors"></div>
|
2012-11-21 21:14:55 +01:00
|
|
|
|
{% if form.email.errors %}
|
|
|
|
|
{% for error in form.email.errors %}
|
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2012-10-25 06:09:28 +02:00
|
|
|
|
<div class="alert alert-pitch" id="company-email">Please use your
|
|
|
|
|
company email address to sign up. Otherwise, we won’t be able to
|
|
|
|
|
connect you with your coworkers.</div>
|
2013-09-13 06:06:10 +02:00
|
|
|
|
<div class="register-google">
|
2015-01-29 08:59:41 +01:00
|
|
|
|
<a href="{% url 'zerver.views.start_google_oauth2' %}" class="zocial google register-google-button">Sign up with Google</a>
|
2013-04-24 21:03:24 +02:00
|
|
|
|
</div>
|
2012-08-29 00:55:10 +02:00
|
|
|
|
</div>
|
2013-01-14 04:27:46 +01:00
|
|
|
|
|
2013-09-13 06:06:10 +02:00
|
|
|
|
</div>
|
|
|
|
|
<div class="footer-padder"></div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2013-01-14 04:27:46 +01:00
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
if (window.location.hash.substring(0, 1) === "#") {
|
|
|
|
|
document.email_form.action += window.location.hash;
|
|
|
|
|
}
|
|
|
|
|
</script>
|
2012-08-29 00:55:10 +02:00
|
|
|
|
{% endblock %}
|