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 %}
|
2018-07-06 23:31:53 +02:00
|
|
|
<script>
|
2013-08-12 16:11:04 +02:00
|
|
|
$(function () {
|
2017-06-22 22:08:43 +02:00
|
|
|
common.autofocus('#email');
|
2013-08-12 16:11:04 +02:00
|
|
|
});
|
2012-09-25 22:58:59 +02:00
|
|
|
</script>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
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-08-10 22:34:17 +02:00
|
|
|
<div class="app-main register-page-container white-box {% if realm_invite_required and not from_multiuse_invite %}closed-realm{% endif %}">
|
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">
|
2017-05-26 02:27:59 +02:00
|
|
|
<img class="avatar" src="{{ realm_icon }}" alt="" />
|
2017-05-01 21:33:41 +02:00
|
|
|
<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>
|
2017-07-28 01:18:37 +02:00
|
|
|
|
|
|
|
<div class="invite-required">
|
|
|
|
<hr />
|
|
|
|
<i class="fa fa-lock"></i>{{ _("You need an invitation to join this organization.") }}
|
|
|
|
</div>
|
2015-11-21 21:00:50 +01:00
|
|
|
</div>
|
2017-05-01 21:33:41 +02:00
|
|
|
{% endif %}
|
2017-07-28 01:18:37 +02:00
|
|
|
|
2017-05-01 21:33:41 +02:00
|
|
|
<div class="right-side">
|
|
|
|
{% if no_auth_enabled %}
|
2017-06-05 23:04:38 +02:00
|
|
|
<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-06-05 23:04:38 +02:00
|
|
|
<p>
|
|
|
|
See
|
2017-11-16 19:54:24 +01:00
|
|
|
the <a href="https://zulip.readthedocs.io/en/latest/production/install.html#step-3-configure-zulip">Zulip
|
2017-06-05 23:04:38 +02:00
|
|
|
authentication documentation</a> to learn how to
|
|
|
|
configure authentication backends.
|
|
|
|
</p>
|
|
|
|
</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"
|
2018-04-05 08:38:46 +02:00
|
|
|
action="{{ current_url() }}" method="post">
|
2017-05-12 02:24:28 +02:00
|
|
|
{{ 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>
|
2018-03-22 22:07:19 +01:00
|
|
|
<div class="alert alert-error email-frontend-error"></div>
|
|
|
|
{% if form.email.errors %}
|
|
|
|
{% for error in form.email.errors %}
|
|
|
|
<div class="email-backend-error alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
2017-05-12 02:24:28 +02:00
|
|
|
</div>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2018-07-06 23:24:02 +02:00
|
|
|
<button class="full-width" type="submit">{{ _('Sign up') }}</button>
|
2017-05-12 02:24:28 +02:00
|
|
|
</form>
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if any_oauth_backend_enabled %}
|
2018-04-06 00:16:31 +02:00
|
|
|
<div class="or"><span>{{ _('OR') }}</span></div>
|
2017-05-12 02:24:28 +02:00
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
2017-04-27 06:46:43 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if google_auth_enabled %}
|
2018-10-12 01:52:00 +02:00
|
|
|
<div class="login-social">
|
2017-07-21 15:41:21 +02:00
|
|
|
<form class="form-inline" action="{{ url('zerver.views.auth.start_google_oauth2') }}" method="get">
|
2017-08-04 09:19:32 +02:00
|
|
|
<input type='hidden' name='is_signup' value='1' />
|
2018-04-22 22:34:37 +02:00
|
|
|
<button class="login-social-button login-google-button full-width">
|
|
|
|
{{ _('Sign up with %(identity_provider)s', identity_provider="Google") }}
|
|
|
|
</button>
|
2017-07-21 15:41:21 +02:00
|
|
|
</form>
|
2017-05-12 02:24:28 +02:00
|
|
|
</div>
|
|
|
|
{% endif %}
|
2017-04-18 11:50:44 +02:00
|
|
|
|
2017-05-12 02:24:28 +02:00
|
|
|
{% if github_auth_enabled %}
|
2018-10-12 01:52:00 +02:00
|
|
|
<div class="login-social">
|
2017-07-21 15:41:21 +02:00
|
|
|
<form class="form-inline github-wrapper" action="{{ url('signup-social', args=('github',)) }}" method="get">
|
2018-10-12 02:16:47 +02:00
|
|
|
<button class="login-social-button full-width">
|
2018-04-22 22:34:37 +02:00
|
|
|
{{ _('Sign up with %(identity_provider)s', identity_provider="GitHub") }}
|
|
|
|
</button>
|
2017-07-21 15:41:21 +02:00
|
|
|
</form>
|
2017-05-12 02:24:28 +02:00
|
|
|
</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>
|
|
|
|
|
2018-07-06 23:31:53 +02:00
|
|
|
<script>
|
2017-02-24 16:42:13 +01:00
|
|
|
if (window.location.hash.substring(0, 1) === "#") {
|
|
|
|
document.email_form.action += window.location.hash;
|
|
|
|
}
|
|
|
|
</script>
|
2012-08-29 00:55:10 +02:00
|
|
|
{% endblock %}
|