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">
|
2016-04-21 08:48:33 +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"
|
2016-04-21 08:48:33 +02:00
|
|
|
|
action="{{ current_url() }}" method="post">
|
|
|
|
|
{{ csrf_input }}
|
|
|
|
|
<input type="text" class="email required" placeholder="{{ _("Enter your work email address") }}"
|
2013-09-13 06:06:10 +02:00
|
|
|
|
id="email" name="email"/>
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<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 %}
|
|
|
|
|
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<div class="alert alert-pitch" id="company-email">{% trans %}Please use your
|
2012-10-25 06:09:28 +02:00
|
|
|
|
company email address to sign up. Otherwise, we won’t be able to
|
2016-04-21 08:48:33 +02:00
|
|
|
|
connect you with your coworkers{% endtrans %}.</div>
|
2015-11-21 21:00:50 +01:00
|
|
|
|
{% if google_auth_enabled %}
|
|
|
|
|
<div class="register-google">
|
2016-04-21 08:48:33 +02:00
|
|
|
|
<a href="{{ url('zerver.views.start_google_oauth2') }}" class="zocial google register-google-button">{{ _("Sign up with Google") }}</a>
|
2015-11-21 21:00:50 +01:00
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
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 %}
|