{% extends "zerver/portico_signup.html" %} {% block title %} {{ _("Accept the Terms of Service") }} | Zulip {% endblock %} {# 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. #} {% block portico_content %}

{{ _("Welcome to Zulip") }}

{{ csrf_input }}
{{ email }}
{% if first_time_login %} {% include 'zerver/new_user_email_address_visibility.html' %} {% endif %}
{% if first_time_terms_of_service_message_template %} {% include first_time_terms_of_service_message_template %} {% elif terms_of_service_message %}

{{ terms_of_service_message |safe }}

{% endif %} {% if terms_of_service %}
{# 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. This is distinct from 'checked', which determines whether the checkbox appears at all. (So, it's not symmetric to the code above.) #} {% if form.terms.errors %} {% for error in form.terms.errors %}

{{ error }}

{% endfor %} {% endif %}
{% endif %}
{% if first_time_login %} {% include 'zerver/change_email_address_visibility_modal.html' %} {% endif %} {% endblock %}