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 %}
|
2017-04-20 21:02:56 +02:00
|
|
|
|
2019-03-02 09:43:15 +01:00
|
|
|
<!-- The following empty tag has unique data-page-id so that this
|
|
|
|
page can be easily identified in it's respective JavaScript file -->
|
|
|
|
<div data-page-id="accounts-home"></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-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">
|
2021-04-21 00:46:14 +02:00
|
|
|
<hr />
|
2017-07-28 01:18:37 +02:00
|
|
|
<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">
|
2019-09-13 20:56:51 +02:00
|
|
|
<input type="email" id="email" class="email" name="email" value="" autofocus 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
|
|
|
|
2021-07-18 23:39:37 +02:00
|
|
|
{% if page_params.external_authentication_methods|length > 0 %}
|
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
|
|
|
|
2020-01-31 15:03:55 +01:00
|
|
|
{% for backend in page_params.external_authentication_methods %}
|
2018-10-12 01:52:00 +02:00
|
|
|
<div class="login-social">
|
2019-10-22 18:11:28 +02:00
|
|
|
<form class="form-inline" action="{{ backend.signup_url }}" method="get">
|
2019-02-08 17:09:25 +01:00
|
|
|
<input type='hidden' name='multiuse_object_key' value='{{ multiuse_object_key }}' />
|
2020-01-31 15:03:55 +01:00
|
|
|
<button id="register_{{ backend.button_id_suffix }}" class="login-social-button full-width"
|
2020-06-18 21:01:37 +02:00
|
|
|
{% if backend.display_icon %} style="background-image:url({{ backend.display_icon }})" {% endif %}>
|
2019-03-05 18:39:17 +01:00
|
|
|
{{ _('Sign up with %(identity_provider)s', identity_provider=backend.display_name) }}
|
2018-04-22 22:34:37 +02:00
|
|
|
</button>
|
2017-07-21 15:41:21 +02:00
|
|
|
</form>
|
2017-05-12 02:24:28 +02:00
|
|
|
</div>
|
2019-03-05 18:39:17 +01:00
|
|
|
{% endfor %}
|
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>
|
|
|
|
|
2012-08-29 00:55:10 +02:00
|
|
|
{% endblock %}
|