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 () {
|
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
|
|
|
|
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>
|
|
|
|
</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-08-15 21:59:44 +02:00
|
|
|
<div class="alert alert-error"></div>
|
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
|
|
|
{% 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">
|
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' />
|
2017-05-12 02:24:28 +02:00
|
|
|
<button class="login-google-button full-width">{{ _('Sign up with 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 %}
|
|
|
|
<div class="login-github">
|
2017-07-21 15:41:21 +02:00
|
|
|
<form class="form-inline github-wrapper" action="{{ url('signup-social', args=('github',)) }}" method="get">
|
|
|
|
<button class="login-github-button github">{{ _('Sign up with GitHub') }}</button>
|
|
|
|
</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>
|
|
|
|
|
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 %}
|