Skip to content

Commit

Permalink
add basic template to extend django allauth signup template #1895
Browse files Browse the repository at this point in the history
  • Loading branch information
jh-RLI committed Nov 27, 2024
1 parent 59eb336 commit 7b9a371
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions login/templates/account/signup.html
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 %}

0 comments on commit 7b9a371

Please sign in to comment.