2011-09-04 04:21:51 +00:00
{% extends "registration/registration_base.html" %}
2016-05-11 14:41:50 +00:00
2011-09-04 04:21:51 +00:00
{% 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(){
2013-03-20 17:45:16 +00:00
$j.cookie('un', $j('#id_username').val(), {path: '/', expires: 90 });
2013-03-12 18:26:40 +00:00
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-08-15 16:43:20 +00:00
< 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 >
2014-05-07 22:37:19 +00:00
< input type = "submit" value = "Send activation email" onclick = "this.disabled=true,this.form.submit();" / >
2011-09-04 04:21:51 +00:00
< / form >
2011-09-06 03:50:38 +00:00
2015-04-09 03:32:36 +00:00
2012-01-13 21:24:34 +00:00
< div class = "google_signup" >
2013-12-03 18:50:12 +00:00
< h3 > ...or< / h3 >
2015-04-09 03:32:36 +00:00
< a class = "btn btn-social btn-google-plus" href = "{% url 'social:begin' " google-oauth2 " % } ? next = {% if request . GET . next % } { { request . GET . next | urlencode } } { % else % } / next / { % endif % } " > < i class = "fa fa-google" > < / i > Sign in with Google< / a >
2015-05-06 20:13:55 +00:00
< a class = "btn btn-social btn-yahoo" href = "{% url 'social:begin' " yahoo " % } ? next = {% if request . GET . next % } { { request . GET . next | urlencode } } { % else % } / next / { % endif % } " > < i class = "fa fa-yahoo" > < / i > Sign in with Yahoo!< / a >
2012-01-13 17:34:42 +00:00
< / div >
2012-05-26 22:36:10 +00:00
{% else %}
< div >
2015-04-09 03:32:36 +00:00
You are already logged in as < a href = "{% url 'supporter' user %}" > {{ 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 %}