zulip/templates/zerver/accounts_home.html

55 lines
2.0 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{% extends "zerver/portico_signup.html" %}
{% load i18n %}
{# 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');
});
</script>
<div class="app register-page">
<div class="app-main register-page-container">
<div class="register-form">
<p class="lead">
<div class="register-page-header">{% trans "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="{% trans "Enter your work email address" %}"
id="email" name="email"/>
<input type="submit" class="btn btn-primary btn-large register-button" value="{% trans "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">{% blocktrans %}Please use your
company email address to sign up. Otherwise, we wont be able to
connect you with your coworkers{% endblocktrans %}.</div>
{% if google_auth_enabled %}
<div class="register-google">
<a href="{% url 'zerver.views.start_google_oauth2' %}" class="zocial google register-google-button">{% trans "Sign up with Google" %}</a>
</div>
{% endif %}
</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 %}