2013-07-29 23:03:31 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
2022-09-06 12:04:03 +02:00
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
<title>{{ _("Accept the Terms of Service") }} | Zulip</title>
|
|
|
|
{% endblock %}
|
|
|
|
|
2016-04-21 08:48:33 +02:00
|
|
|
{#
|
2016-08-10 03:05:26 +02:00
|
|
|
Allow the user to accept a TOS, creating an email record of that fact.
|
|
|
|
Users only hit this page if they are coming from a migration or other update of the TOS;
|
|
|
|
the registration flow has its own (nearly identical) copy of the fields below in register.html.
|
2016-04-21 08:48:33 +02:00
|
|
|
#}
|
2013-01-08 23:26:40 +01:00
|
|
|
|
|
|
|
{% block portico_content %}
|
|
|
|
|
2018-12-17 07:50:38 +01:00
|
|
|
<div class="account-accept-terms-page flex full-page">
|
|
|
|
<div class="center-block new-style">
|
|
|
|
<div class="pitch">
|
2021-12-19 15:24:47 +01:00
|
|
|
<h1 class="get-started">{{ _("Accept the Terms of Service") }}</h1>
|
2013-01-08 23:26:40 +01:00
|
|
|
</div>
|
2018-12-17 07:50:38 +01:00
|
|
|
|
2023-01-10 08:05:49 +01:00
|
|
|
<div class="white-box">
|
|
|
|
<form method="post" id="registration" action="{{ url('accept_terms') }}">
|
2018-12-17 07:50:38 +01:00
|
|
|
{{ csrf_input }}
|
2022-08-12 18:55:01 +02:00
|
|
|
<div id="registration-email">
|
|
|
|
<label for="id_email">{{ _("Email") }}</label>
|
2018-12-17 07:50:38 +01:00
|
|
|
<div class="controls fakecontrol">
|
|
|
|
<p>{{ email }}</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
2013-01-08 23:26:40 +01:00
|
|
|
|
2022-01-25 14:54:19 +01:00
|
|
|
{% if first_time_terms_of_service_message_template %}
|
|
|
|
{% include first_time_terms_of_service_message_template %}
|
|
|
|
{% elif terms_of_service_message %}
|
2021-12-19 15:24:47 +01:00
|
|
|
<div class="description">
|
|
|
|
<p>{{ terms_of_service_message |safe }}</p>
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
<div class="input-group terms-of-service">
|
2017-03-06 19:57:26 +01:00
|
|
|
{#
|
|
|
|
This is somewhat subtle.
|
|
|
|
Checkboxes have a name and value, and when the checkbox is ticked, the form posts
|
|
|
|
with name=value. If the checkbox is unticked, the field just isn't present at all.
|
2013-01-08 23:26:40 +01:00
|
|
|
|
2017-03-06 19:57:26 +01:00
|
|
|
This is distinct from 'checked', which determines whether the checkbox appears
|
|
|
|
at all. (So, it's not symmetric to the code above.)
|
|
|
|
#}
|
2018-12-17 07:50:38 +01:00
|
|
|
<label for="id_terms" class="inline-block checkbox">
|
|
|
|
<input id="id_terms" class="required" type="checkbox" name="terms"
|
|
|
|
{% if form.terms.value() %}checked="checked"{% endif %} />
|
|
|
|
<span></span>
|
2023-04-09 06:10:04 +02:00
|
|
|
{% trans %}I agree to the <a href="{{ root_domain_url }}/policies/terms" target="_blank" rel="noopener noreferrer">Terms of Service</a>.{% endtrans %}
|
2018-12-17 07:50:38 +01:00
|
|
|
</label>
|
|
|
|
{% if form.terms.errors %}
|
|
|
|
{% for error in form.terms.errors %}
|
|
|
|
<p class="help-inline text-error">{{ error }}</p>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2022-08-12 18:55:01 +02:00
|
|
|
<div class="controls">
|
|
|
|
<button id="accept_tos_button" type="submit">{{ _('Accept') }}</button>
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
2018-12-17 07:50:38 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2013-01-08 23:26:40 +01:00
|
|
|
</div>
|
2018-12-17 07:50:38 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2013-01-08 23:26:40 +01:00
|
|
|
{% endblock %}
|