2012-02-12 21:42:25 -08:00
|
|
|
{% extends "registration/registration_base.html" %}
|
2012-02-12 17:17:17 -08:00
|
|
|
|
2012-02-13 07:15:08 -08:00
|
|
|
{% block page-title %}Sign up - {{ block.super }}{% endblock %}
|
2012-02-12 17:17:17 -08:00
|
|
|
|
2014-05-02 14:20:17 -07:00
|
|
|
{% block body-class %}{{ block.super }} static signup{% endblock %}
|
2012-02-12 17:17:17 -08:00
|
|
|
|
|
|
|
{% block content %}
|
2014-05-04 05:12:08 -07:00
|
|
|
{% if request.user.is_authenticated %}
|
|
|
|
<script type="text/javascript">document.location.href = '/';</script>
|
|
|
|
{% else %}
|
|
|
|
<form class="form-horizontal static-box" method="post" action=".">
|
|
|
|
{% if form.errors %}
|
|
|
|
{% if form.non_field_errors %}
|
|
|
|
<div class="alert alert-error">
|
|
|
|
{{ form.non_field_errors }}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="alert alert-error">
|
|
|
|
Please fix the errors below.
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
|
|
<fieldset>
|
|
|
|
<div class="info">
|
2015-06-18 10:59:09 -07:00
|
|
|
Free for 7 days, then just <span>five bucks a month</span>.
|
2014-05-04 05:12:08 -07:00
|
|
|
<p class="sub">
|
2014-06-23 20:55:24 -07:00
|
|
|
Your free trial comes with unrestricted access to the app,<br />
|
|
|
|
<a href="/api/">API</a>, instant chat support, and more.
|
2014-05-04 05:12:08 -07:00
|
|
|
</p>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
<div class="control-group {% if form.errors.username %}error{% endif %}">
|
|
|
|
<label class="control-label" for="id_username">Username</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{ form.username }}
|
|
|
|
{% if form.errors.username %}
|
|
|
|
<span class="help-inline">
|
|
|
|
{% for error in form.errors.username %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
<div class="control-group {% if form.errors.email %}error{% endif %}">
|
|
|
|
<label class="control-label" for="id_email">Email address</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{ form.email }}
|
|
|
|
{% if form.errors.email %}
|
|
|
|
<span class="help-inline">
|
|
|
|
{% for error in form.errors.email %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
<div class="control-group {% if form.errors.password1 %}error{% endif %}">
|
|
|
|
<label class="control-label"l for="id_password1">Password</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{ form.password1 }}
|
|
|
|
{% if form.errors.password1 %}
|
|
|
|
<span class="help-inline">
|
|
|
|
{% for error in form.errors.password1 %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
<div class="control-group {% if form.errors.password2 %}error{% endif %}">
|
|
|
|
<label class="control-label" for="id_password2">Confirm password</label>
|
|
|
|
<div class="controls">
|
|
|
|
{{ form.password2 }}
|
|
|
|
{% if form.errors.password2 %}
|
|
|
|
<span class="help-inline">
|
|
|
|
{% for error in form.errors.password2 %}
|
|
|
|
{{ error }}
|
|
|
|
{% endfor %}
|
|
|
|
</span>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
<div class="form-actions group">
|
|
|
|
<a class="btn pull-right" href="/login/">Log in</a>
|
|
|
|
<button class="btn btn-primary" type="submit">Sign up</button>
|
2014-05-02 14:20:17 -07:00
|
|
|
</div>
|
2014-05-04 05:12:08 -07:00
|
|
|
</fieldset>
|
|
|
|
{% csrf_token %}
|
|
|
|
</form>
|
|
|
|
{% endif %}
|
2012-02-12 17:17:17 -08:00
|
|
|
{% endblock %}
|
2015-07-17 10:46:02 -07:00
|
|
|
|
|
|
|
{% block analytics %}
|
|
|
|
{% if not debug %}
|
|
|
|
window.ll('tagScreen', 'Signup view');
|
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|