2013-07-29 23:03:31 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
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 %}
|
|
|
|
|
2016-08-10 03:05:26 +02:00
|
|
|
{% if special_message_template %}
|
|
|
|
{% include special_message_template %}
|
|
|
|
{% else %}
|
2013-01-08 23:26:40 +01:00
|
|
|
<div class="pitch">
|
2016-08-10 03:05:26 +02:00
|
|
|
<p>{{ _("There is a new terms of service.") }}</p>
|
|
|
|
<h3>{{ _("Accept the terms of service") }}</h3>
|
2013-01-08 23:26:40 +01:00
|
|
|
</div>
|
2016-08-10 03:05:26 +02:00
|
|
|
{% endif %}
|
2013-01-08 23:26:40 +01:00
|
|
|
|
2017-01-07 21:19:52 +01:00
|
|
|
<form method="post" class="form-horizontal" id="registration" action="{{ url('zerver.views.home.accounts_accept_terms') }}">
|
2016-04-21 08:48:33 +02:00
|
|
|
{{ csrf_input }}
|
2013-01-08 23:26:40 +01:00
|
|
|
<div class="control-group">
|
2016-04-21 08:48:33 +02:00
|
|
|
<label for="id_email" class="control-label">{{ _("Email") }}</label>
|
2013-01-08 23:26:40 +01:00
|
|
|
<div class="controls fakecontrol">
|
2013-11-18 22:57:55 +01:00
|
|
|
<p>{{ email }}</p>
|
2013-01-08 23:26:40 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<label class="checkbox">
|
2016-04-21 08:48:33 +02:00
|
|
|
{#
|
2013-01-08 23:26:40 +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.
|
|
|
|
|
|
|
|
This is distinct from 'checked', which determines whether the checkbox appears
|
|
|
|
at all. (So, it's not symmetric to the code above.)
|
2016-04-21 08:48:33 +02:00
|
|
|
#}
|
2013-01-08 23:26:40 +01:00
|
|
|
<input id="id_terms" class="required" type="checkbox" name="terms"
|
2016-04-21 08:48:33 +02:00
|
|
|
{% if form.terms.value() %}checked="checked"{% endif %} />
|
2016-10-10 09:18:15 +02:00
|
|
|
{% trans %}I agree to the <a href="{{ server_uri }}/terms">Terms of Service</a>{% endtrans %}.
|
2013-01-08 23:26:40 +01:00
|
|
|
</label>
|
|
|
|
{% if form.terms.errors %}
|
|
|
|
{% for error in form.terms.errors %}
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<br />
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
2016-12-30 18:51:52 +01:00
|
|
|
<input type="submit" class="btn btn-primary" value="{{ _('Enter') }}" /><br />
|
2013-01-08 23:26:40 +01:00
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
{% endblock %}
|