This repository has been archived by the owner on Nov 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{% extends "socialaccount/base.html" %} | ||
|
||
{% load i18n %} | ||
|
||
{% block head_title %}{% trans "Signup" %}{% endblock %} | ||
|
||
{% block content %} | ||
<h1>{% trans "Sign Up" %}</h1> | ||
|
||
<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 id="signup_form" method="post" action="{% url 'socialaccount_signup' %}"> | ||
{{ form.non_field_errors }} | ||
{% csrf_token %} | ||
{% for field in form %} | ||
{% if field is not form.terms_of_use and field is not form.get_newsletters %} | ||
{% include 'a4_candy_contrib/includes/form_field.html' with field=field %} | ||
{% endif %} | ||
{% endfor %} | ||
<div class="form-check"> | ||
<label class="form-check__label"> | ||
{{ form.terms_of_use }} | ||
{% blocktrans with terms_of_use_url=settings.a4_candy_cms_settings.ImportantPages.terms_of_use.url %} | ||
I accept the <a href="{{terms_of_use_url}}" target="_blank">terms of use</a>. | ||
{% endblocktrans %} | ||
</label> | ||
{{ form.terms_of_use.errors }} | ||
</div> | ||
<div class="form-check"> | ||
<label class="form-check__label"> | ||
{{ form.get_newsletters }} | ||
{% blocktrans %} | ||
Send me newsletters | ||
{% endblocktrans %} | ||
</label> | ||
{{ form.get_newsletters.errors }} | ||
</div> | ||
{% if redirect_field_value %} | ||
<input type="hidden" name="{{ redirect_field_name }}" value="{{ redirect_field_value }}"/> | ||
{% endif %} | ||
<div class="u-spacer-bottom-double"> | ||
<button class="btn btn--primary" type="submit">{% trans "Register" %}</button> | ||
</div> | ||
</form> | ||
|
||
{% endblock %} |