Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
Merge b22cf75 into c6be722
Browse files Browse the repository at this point in the history
  • Loading branch information
Magdalena Noffke committed Oct 15, 2019
2 parents c6be722 + b22cf75 commit e59353a
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions liqd_product/templates/socialaccount/signup.html
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 %}

0 comments on commit e59353a

Please sign in to comment.