2012-10-16 07:24:29 +02:00
|
|
|
|
{% extends "zephyr/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">
|
|
|
|
|
autofocus('#email');
|
|
|
|
|
</script>
|
2012-08-28 21:56:46 +02:00
|
|
|
|
|
2012-09-25 22:58:59 +02:00
|
|
|
|
<div class="pitch">
|
2012-11-21 21:14:55 +01:00
|
|
|
|
<p class="lead">Let's get started…</p>
|
2013-04-03 18:51:36 +02:00
|
|
|
|
<form class="form-inline" id="send_confirm" name="email_form"
|
|
|
|
|
action="{% url 'zephyr.views.accounts_home' %}" 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"
|
|
|
|
|
id="email" name="email"/>
|
2012-09-25 22:58:59 +02:00
|
|
|
|
<input type="submit" class="btn btn-primary btn-large" value="Sign up"/>
|
|
|
|
|
</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>
|
2012-08-29 00:55:10 +02:00
|
|
|
|
</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 %}
|