mirror of https://github.com/zulip/zulip.git
58 lines
2.1 KiB
HTML
58 lines
2.1 KiB
HTML
{% extends "zerver/portico_signup.html" %}
|
||
|
||
{# Home page for not logged-in users. #}
|
||
|
||
{# This is where we pitch the app and solicit signups. #}
|
||
|
||
{% block portico_content %}
|
||
<script type="text/javascript">
|
||
$(function () {
|
||
autofocus('#email');
|
||
|
||
if (window.location.pathname.indexOf("customer3.invalid") !== -1) {
|
||
$("#customer3-pitch").show();
|
||
}
|
||
});
|
||
</script>
|
||
|
||
<div class="app register-page">
|
||
<div class="app-main register-page-container">
|
||
|
||
<div class="register-form">
|
||
<p class="lead">
|
||
<span id="customer3-pitch" style="display: none;">Participate in the real-time conference discussion using Zulip!</span>
|
||
<div class="register-page-header">Let's get started…</div>
|
||
</p>
|
||
<form class="form-inline" id="send_confirm" name="email_form"
|
||
action="{{ current_url }}" method="post">
|
||
{% csrf_token %}
|
||
<input type="text" class="email required" placeholder="Enter your work email address"
|
||
id="email" name="email"/>
|
||
<input type="submit" class="btn btn-primary btn-large register-button" value="Sign up"/>
|
||
</form>
|
||
<div id="errors"></div>
|
||
{% if form.email.errors %}
|
||
{% for error in form.email.errors %}
|
||
<div class="alert alert-error">{{ error }}</div>
|
||
{% endfor %}
|
||
{% endif %}
|
||
|
||
<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>
|
||
<div class="register-google">
|
||
<a href="/accounts/login/openid/" class="zocial google register-google-button">Sign up with Google</a>
|
||
</div>
|
||
</div>
|
||
|
||
</div>
|
||
<div class="footer-padder"></div>
|
||
</div>
|
||
|
||
<script type="text/javascript">
|
||
if (window.location.hash.substring(0, 1) === "#") {
|
||
document.email_form.action += window.location.hash;
|
||
}
|
||
</script>
|
||
{% endblock %}
|