2011-09-04 04:21:51 +00:00
{% extends "registration/registration_base.html" %}
{% block title %}Register for an account{% endblock %}
2013-03-12 18:26:40 +00:00
{% block extra_js %}
{{ block.super }}
< script type = "text/javascript" >
function put_un_in_cookie(){
$j.cookie('un', $j('#id_username').val(), {path: '/'});
return true;
}
< / script >
{% endblock %}
2011-11-19 00:50:47 +00:00
{% block doccontent %}
2012-05-26 22:36:10 +00:00
{% if not user.is_authenticated %}
2012-05-08 20:15:23 +00:00
< h3 > Sign up for a Unglue.it account:< / h3 >
2011-09-06 03:50:38 +00:00
2013-03-12 18:26:40 +00:00
< form method = 'post' action = '' onsubmit = "return put_un_in_cookie();" > {% csrf_token %}
2011-09-04 04:21:51 +00:00
{{ form }}
2012-01-13 21:24:34 +00:00
< input type = "submit" value = "Send activation email" / >
2011-09-04 04:21:51 +00:00
< / form >
2011-09-06 03:50:38 +00:00
2012-01-13 21:24:34 +00:00
< div >
< div class = "google_signup" >
< h3 > Or use an account you already have:< / h3 >
2013-03-08 07:43:11 +00:00
< 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 >
2012-01-13 17:34:42 +00:00
< / div >
2012-05-26 22:36:10 +00:00
{% else %}
< div >
2012-07-06 16:25:20 +00:00
You are already logged in as < a href = "{% url supporter supporter_username=user.username %}" > {{ user.username }}< / a > .
2012-05-26 22:36:10 +00:00
< / div >
{% endif %}
2011-09-04 04:21:51 +00:00
< / div >
2011-09-06 03:50:38 +00:00
2011-09-04 04:21:51 +00:00
{% endblock %}