2013-07-29 23:03:31 +02:00
|
|
|
{% extends "zerver/portico_signup.html" %}
|
2015-11-03 09:37:07 +01:00
|
|
|
{% load i18n %}
|
2013-01-08 23:26:40 +01:00
|
|
|
{% comment %}
|
|
|
|
Allow the user to accept the terms, creating an email record of that fact.
|
|
|
|
{% endcomment %}
|
|
|
|
|
|
|
|
{% block for_you %}for {% if company_name %} {{company_name}} {% else %} __________ {% endif %} {% endblock %}
|
|
|
|
{% block portico_content %}
|
|
|
|
|
2015-11-03 09:37:07 +01:00
|
|
|
<p>({% trans "Welcome! We think you'll like it here" %}.)</p>
|
|
|
|
|
2013-01-08 23:26:40 +01:00
|
|
|
|
|
|
|
<div class="pitch">
|
|
|
|
<hr/>
|
2015-11-03 09:37:07 +01:00
|
|
|
<p>{% trans "You're almost there. We just need you to do one last thing" %}.</p>
|
|
|
|
<h3>{% trans "Accept the Zulip terms of service" %}</h3>
|
2013-01-08 23:26:40 +01:00
|
|
|
</div>
|
|
|
|
|
2013-07-29 23:03:31 +02:00
|
|
|
<form method="post" class="form-horizontal" id="registration" action="{% url 'zerver.views.accounts_accept_terms' %}">
|
2013-01-08 23:26:40 +01:00
|
|
|
{% csrf_token %}
|
|
|
|
<div class="control-group">
|
2015-11-03 09:37:07 +01:00
|
|
|
<label for="id_email" class="control-label">{% trans "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">
|
2015-11-03 09:37:07 +01:00
|
|
|
<label for="id_full_name" class="control-label">{% trans "Your name" %}</label>
|
2013-01-08 23:26:40 +01:00
|
|
|
<div class="controls">
|
|
|
|
<input id="id_full_name" class="required" type="text" name="full_name"
|
|
|
|
value="{% if form.full_name.value %}{{ form.full_name.value }}{% endif %}"
|
|
|
|
maxlength="100" />
|
|
|
|
{% if form.full_name.errors %}
|
|
|
|
{% for error in form.full_name.errors %}
|
|
|
|
<div class="alert alert-error">{{ error }}</div>
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<label class="checkbox">
|
|
|
|
{% comment %}
|
|
|
|
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.)
|
|
|
|
{% endcomment %}
|
|
|
|
<input id="id_terms" class="required" type="checkbox" name="terms"
|
|
|
|
{% if form.terms.value %}checked="checked"{% endif %} />
|
2015-11-03 09:37:07 +01:00
|
|
|
{% trans "I agree to the" %} <a href="/terms">{% trans "Terms of Service" %}</a>.
|
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">
|
|
|
|
<input type="submit" class="btn btn-primary" value="Register" /><br />
|
|
|
|
<input type="hidden" name="next" value="{{ next }}" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
autofocus('#id_full_name');
|
|
|
|
</script>
|
|
|
|
|
|
|
|
{% endblock %}
|