40 lines
1.4 KiB
HTML
40 lines
1.4 KiB
HTML
{% extends "registration/registration_base.html" %}
|
|
|
|
{% block title %}Register for an account{% endblock %}
|
|
{% block extra_js %}
|
|
{{ block.super }}
|
|
<script type="text/javascript">
|
|
function put_un_in_cookie(){
|
|
$j.cookie('un', $j('#id_username').val(), {path: '/', expires: 90 });
|
|
return true;
|
|
}
|
|
</script>
|
|
{% endblock %}
|
|
{% block doccontent %}
|
|
{% if not user.is_authenticated %}
|
|
|
|
<h3>Sign up for a Unglue.it account:</h3>
|
|
|
|
<form method='post' action='#' class="p_form" onsubmit="return put_un_in_cookie();">{% csrf_token %}
|
|
<div>{{ form.username.label }}: {{ form.username.errors }}<br />{{ form.username }}</div>
|
|
<div>{{ form.email.label }}: {{ form.email.errors }}<br />{{ form.email }}</div>
|
|
<div>{{ form.password1.label }}: {{ form.password1.errors }}<br />{{ form.password1 }}</div>
|
|
<div>{{ form.password2.label }}: {{ form.password2.errors }}<br />{{ form.password2 }}</div>
|
|
<input type="submit" value="Send activation email" />
|
|
</form>
|
|
|
|
<div>
|
|
<div class="google_signup">
|
|
<h3>Or use an account you already have:</h3>
|
|
<a href="/socialauth/login/google?next={% if request.GET.next %}{{ request.GET.next|urlencode }}{% else %}/next/{% endif %}"><img src="{{ STATIC_URL }}images/auth/google_32_noborder.png"><div>Sign in with Google</div></a>
|
|
</div>
|
|
{% else %}
|
|
<div>
|
|
You are already logged in as <a href="{% url supporter user %}">{{ user.username }}</a>.
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|