-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add basic template to extend django allauth signup template #1895
- Loading branch information
Showing
1 changed file
with
25 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,25 @@ | ||
{% extends "account/base.html" %} | ||
{% load i18n %} | ||
|
||
{% block head_title %} | ||
{% translate "Signup" %} | ||
{% endblock head_title %} | ||
{% block inner %} | ||
<h1>{% translate "Sign Up" %}</h1> | ||
<p> | ||
{% blocktranslate %}Already have an account? Then please <a href="{{ login_url }}">sign in</a>.{% endblocktranslate %} | ||
</p> | ||
<form class="signup" | ||
id="signup_form" | ||
method="post" | ||
action="{% url 'account_signup' %}"> | ||
{% csrf_token %} | ||
{{ form }} | ||
{% if redirect_field_value %} | ||
<input type="hidden" | ||
name="{{ redirect_field_name }}" | ||
value="{{ redirect_field_value }}" /> | ||
{% endif %} | ||
<button class="btn btn-primary" type="submit">{% translate "Sign Up" %} »</button> | ||
</form> | ||
{% endblock inner %} |