add app user management allauth
This commit is contained in:
44
templates/account/login.html
Normal file
44
templates/account/login.html
Normal file
@@ -0,0 +1,44 @@
|
||||
{% extends "account/base_entrance.html" %}
|
||||
{% load i18n %}
|
||||
{% load allauth account %}
|
||||
{% block head_title %}
|
||||
{% trans "Sign In" %}
|
||||
{% endblock head_title%}
|
||||
{% block content %}
|
||||
<h1 class="mb-4">{% trans "Sign In" %}</h1>
|
||||
<p class="mb-4">
|
||||
If you have not created an account yet, then please
|
||||
<a
|
||||
href="{% url 'account_signup' %}?next={% url 'profile-onboarding' %}"
|
||||
class="text-decoration-none"
|
||||
>sign up</a
|
||||
>
|
||||
first.
|
||||
</p>
|
||||
|
||||
{% url 'account_login' as login_url %}
|
||||
<form method="post" action="{{ login_url }}" class="mb-4">
|
||||
{% csrf_token %}
|
||||
<div class="mb-3">
|
||||
{% for field in form %}
|
||||
<div class="form-group">
|
||||
{{ field }} {% if field.errors %}
|
||||
<div class="text-danger">{{ field.errors }}</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if redirect_field_value %}
|
||||
<input
|
||||
type="hidden"
|
||||
name="{{ redirect_field_name }}"
|
||||
value="{{ redirect_field_value }}"
|
||||
/>
|
||||
{% endif %}
|
||||
<button type="submit" class="btn btn-primary">{% trans "Sign In" %}</button>
|
||||
</form>
|
||||
|
||||
{% if SOCIALACCOUNT_ENABLED %}
|
||||
{% include "socialaccount/snippets/login.html" with page_layout="entrance" %}
|
||||
{% endif %}
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user