fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6bf9138
)
nicer social signup form
author
Jan Szejko
<janek37@gmail.com>
Thu, 24 May 2018 15:58:45 +0000
(17:58 +0200)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 24 May 2018 15:58:45 +0000
(17:58 +0200)
src/wolnelektury/templates/socialaccount/signup.html
patch
|
blob
|
history
diff --git
a/src/wolnelektury/templates/socialaccount/signup.html
b/src/wolnelektury/templates/socialaccount/signup.html
index
78df711
..
ef4d5fc
100644
(file)
--- a/
src/wolnelektury/templates/socialaccount/signup.html
+++ b/
src/wolnelektury/templates/socialaccount/signup.html
@@
-1,6
+1,7
@@
{% extends "socialaccount/base.html" %}
{% load i18n %}
{% extends "socialaccount/base.html" %}
{% load i18n %}
+{% load ajaxable_tags %}
{% block head_title %}{% trans "Signup" %}{% endblock %}
{% block head_title %}{% trans "Signup" %}{% endblock %}
@@
-10,9
+11,13
@@
<p>{% blocktrans with provider_name=account.get_provider.name site_name=site.name %}You are about to use your {{provider_name}} account to login to
{{site_name}}. As a final step, please complete the following form:{% endblocktrans %}</p>
<p>{% blocktrans with provider_name=account.get_provider.name site_name=site.name %}You are about to use your {{provider_name}} account to login to
{{site_name}}. As a final step, please complete the following form:{% endblocktrans %}</p>
-<form class="signup" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}">
+<form class="signup
cuteform
" id="signup_form" method="post" action="{% url 'socialaccount_signup' %}">
{% csrf_token %}
{% csrf_token %}
- {{ form.as_p }}
+ <ul>
+ {{ form.username|pretty_field }}
+ {{ form.email|pretty_field }}
+ {{ form.agree_newsletter|pretty_checkbox }}
+ </ul>
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}
{% if redirect_field_value %}
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}" />
{% endif %}