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>
|
2017-04-20 21:02:56 +02:00
|
|
|
<div class="bg-image"></div>
|
|
|
|
|
2017-05-01 21:33:41 +02:00
|
|
|
<div class="app register-page split-view flex full-page new-style">
|
|
|
|
<div class="inline-block">
|
|
|
|
<div class="lead">
|
|
|
|
<h1 class="get-started">{{ _("Sign up for Zulip") }}</h1>
|
|
|
|
</div>
|
2017-05-03 19:48:52 +02:00
|
|
|
<div class="app-main register-page-container white-box">
|
2017-05-01 21:33:41 +02:00
|
|
|
<div class="register-form new-style">
|
|
|
|
{% if realm_name %}
|
|
|
|
<div class="left-side">
|
|
|
|
<div class="org-header">
|
|
|
|
<div class="avatar" style="background-image: url('{{ realm_icon }}')"></div>
|
|
|
|
<div class="info-box">
|
|
|
|
<div class="organization-name">{{ realm_name }}</div>
|
|
|
|
<div class="organization-path">{{ realm_uri }}</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="description">
|
2017-05-11 22:52:14 +02:00
|
|
|
{{ realm_description|safe }}
|
2017-02-24 16:42:13 +01:00
|
|
|
</div>
|
2015-11-21 21:00:50 +01:00
|
|
|
</div>
|
2017-05-01 21:33:41 +02:00
|
|
|
{% endif %}
|
|
|
|
<div class="right-side">
|
|
|
|
{% if no_auth_enabled %}
|
|
|
|
<div class="alert">
|
|
|
|
<p>No authentication backends are enabled on this
|
|
|
|
server yet, so it is impossible to register!</p>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-01 21:33:41 +02:00
|
|
|
<p>See
|
|
|
|
the <a href="http://zulip.readthedocs.io/en/latest/prod-install.html#step-3-configure-zulip">Zulip
|
|
|
|
authentication documentation</a> to learn how to
|
|
|
|
configure authentication backends.</p>
|
2017-04-20 21:02:56 +02:00
|
|
|
</div>
|
2017-05-01 21:33:41 +02:00
|
|
|
{% else %}
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if password_auth_enabled %}
|
|
|
|
<form class="form-inline" id="send_confirm" name="email_form"
|
|
|
|
action="{{ current_url() }}" method="post">
|
|
|
|
{{ csrf_input }}
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
<div class="input-box no-validate">
|
|
|
|
<input type="email" id="email" class="email" name="email" value="" required />
|
2017-05-25 20:00:31 +02:00
|
|
|
<label for="email">Email</label>
|
2017-05-12 02:24:28 +02:00
|
|
|
<div class="required"></div>
|
2017-05-25 22:43:42 +02:00
|
|
|
<img class="valid" src="/static/images/checkbox-valid.svg" alt="{{ _('Valid') }}" />
|
2017-05-12 02:24:28 +02:00
|
|
|
</div>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
<button class="full-width" type="submit" name="">{{ _('Sign up') }}</button>
|
|
|
|
</form>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
<div id="errors"></div>
|
|
|
|
{% if form.email.errors %}
|
|
|
|
{% for error in form.email.errors %}
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if any_oauth_backend_enabled %}
|
|
|
|
<div class="or">or</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2017-04-27 06:46:43 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if google_auth_enabled %}
|
|
|
|
<div class="register-google">
|
|
|
|
<a href="{{ url('zerver.views.auth.start_google_oauth2') }}">
|
|
|
|
<button class="login-google-button full-width">{{ _('Sign up with Google') }}</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-04-18 11:50:44 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if github_auth_enabled %}
|
|
|
|
<div class="login-github">
|
|
|
|
<a href="{{ url('signup-social', args=('github',)) }}"
|
|
|
|
class="github-wrapper">
|
|
|
|
<button class="login-github-button github">
|
|
|
|
<span>{{ _('Sign up with GitHub') }}</span>
|
|
|
|
</button>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-05-01 21:33:41 +02:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2017-02-24 16:42:13 +01:00
|
|
|
</div>
|
2012-08-29 00:55:10 +02:00
|
|
|
</div>
|
2016-08-24 03:13:56 +02:00
|
|
|
</div>
|
2013-09-13 06:06:10 +02:00
|
|
|
</div>
|
|
|
|
|
2017-02-24 16:42:13 +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 %}
|