-
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.
- Loading branch information
Davide Arcuri
committed
Aug 30, 2024
1 parent
8914119
commit 5ca417d
Showing
1 changed file
with
46 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,46 @@ | ||
{% extends "account/base_entrance.html" %} | ||
{% load allauth i18n %} | ||
{% block head_title %} | ||
{% trans "Signup" %} | ||
{% endblock head_title %} | ||
{% block content %} | ||
{% element h1 %} | ||
{% trans "Sign Up" %} | ||
{% endelement %} | ||
{% setvar link %} | ||
<a href="{{ login_url }}"> | ||
{% endsetvar %} | ||
{% setvar end_link %} | ||
</a> | ||
{% endsetvar %} | ||
{% element p %} | ||
{% blocktranslate %}Already have an account? Then please {{ link }}sign in{{ end_link }}.{% endblocktranslate %} | ||
{% endelement %} | ||
{% if not SOCIALACCOUNT_ONLY %} | ||
{% url 'account_signup' as action_url %} | ||
{% element form form=form method="post" action=action_url tags="entrance,signup" %} | ||
{% slot body %} | ||
{% csrf_token %} | ||
{% element fields form=form unlabeled=True %} | ||
{% endelement %} | ||
{{ redirect_field }} | ||
{% endslot %} | ||
{% slot actions %} | ||
{% element button tags="prominent,signup" type="submit" %} | ||
{% trans "Sign Up" %} | ||
{% endelement %} | ||
{% endslot %} | ||
{% endelement %} | ||
{% endif %} | ||
{% if SOCIALACCOUNT_ENABLED %} | ||
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %} | ||
{% endif %} | ||
{% endblock content %} | ||
|
||
{% block javascript %} | ||
{{ block.super }} | ||
<script> | ||
$("#id_email").attr("required", "true"); | ||
$("label", $("#id_email").parent()).html('\n \n email\n \n ') | ||
</script> | ||
{% endblock javascript %} |