-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#N/A] Styled For You Page. Added login and signup templates. Added h…
…as_liked variable to for you view
- Loading branch information
1 parent
eeb9b7a
commit 575c075
Showing
8 changed files
with
271 additions
and
45 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
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,48 @@ | ||
{% extends 'base.html' %} | ||
{% load i18n %} | ||
{% load allauth account %} | ||
{% block head_title %} | ||
{% trans "Sign In" %} | ||
{% endblock head_title %} | ||
{% block content %} | ||
{% element h1 %} | ||
{% trans "Sign In" %} | ||
{% endelement %} | ||
{% if not SOCIALACCOUNT_ONLY %} | ||
{% setvar link %} | ||
<a href="{{ signup_url }}"> | ||
{% endsetvar %} | ||
{% setvar end_link %} | ||
</a> | ||
{% endsetvar %} | ||
{% element p %} | ||
{% blocktranslate %}If you have not created an account yet, then please {{ link }}sign up{{ end_link }} first.{% endblocktranslate %} | ||
{% endelement %} | ||
{% url 'account_login' as login_url %} | ||
{% element form form=form method="post" action=login_url tags="entrance,login" %} | ||
{% slot body %} | ||
{% csrf_token %} | ||
{% element fields form=form unlabeled=True %} | ||
{% endelement %} | ||
{{ redirect_field }} | ||
{% endslot %} | ||
{% slot actions %} | ||
{% element button type="submit" tags="prominent,login" %} | ||
{% trans "Sign In" %} | ||
{% endelement %} | ||
{% endslot %} | ||
{% endelement %} | ||
{% endif %} | ||
{% if LOGIN_BY_CODE_ENABLED %} | ||
{% element hr %} | ||
{% endelement %} | ||
{% element h2 %} | ||
{% element button href=request_login_code_url tags="prominent,login,secondary" %} | ||
{% trans "Mail me a sign-in code" %} | ||
{% endelement %} | ||
{% endelement %} | ||
{% endif %} | ||
{% if SOCIALACCOUNT_ENABLED %} | ||
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %} | ||
{% endif %} | ||
{% endblock content %} |
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,38 @@ | ||
{% extends 'base.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 %} |
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
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
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
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
Oops, something went wrong.