first commit
This commit is contained in:
5
templates/allauth/elements/alert.html
Executable file
5
templates/allauth/elements/alert.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<p>
|
||||
{% slot message %}
|
||||
{% endslot %}
|
||||
</p>
|
||||
5
templates/allauth/elements/badge.html
Executable file
5
templates/allauth/elements/badge.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<strong {% if attrs.title %}title="{{ attrs.title }}"{% endif %}>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</strong>
|
||||
13
templates/allauth/elements/button.html
Executable file
13
templates/allauth/elements/button.html
Executable file
@@ -0,0 +1,13 @@
|
||||
{% load allauth %}
|
||||
{% comment %} djlint:off {% endcomment %}
|
||||
<{% if attrs.href %}a href="{{ attrs.href }}"{% else %}button{% endif %}
|
||||
{% if attrs.form %}form="{{ attrs.form }}"{% endif %}
|
||||
{% if attrs.id %}id="{{ attrs.id }}"{% endif %}
|
||||
{% if attrs.name %}name="{{ attrs.name }}"{% endif %}
|
||||
{% if attrs.value %}value="{{ attrs.value }}"{% endif %}
|
||||
{% if attrs.type %}type="{{ attrs.type }}"{% endif %}
|
||||
{% if attrs.id %}id="{{ attrs.id }}"{% endif %}
|
||||
>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</{% if attrs.href %}a{% else %}button{% endif %}>
|
||||
5
templates/allauth/elements/button_group.html
Executable file
5
templates/allauth/elements/button_group.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<div>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</div>
|
||||
47
templates/allauth/elements/field.html
Executable file
47
templates/allauth/elements/field.html
Executable file
@@ -0,0 +1,47 @@
|
||||
{% load allauth %}
|
||||
{{ attrs.errors }}
|
||||
<p>
|
||||
{% if attrs.type == "textarea" %}
|
||||
<label for="{{ attrs.id }}">
|
||||
{% slot label %}
|
||||
{% endslot %}
|
||||
</label>
|
||||
<textarea {% if attrs.required %}required{% endif %}
|
||||
{% if attrs.rows %}rows="{{ attrs.rows }}"{% endif %}
|
||||
{% if attrs.disabled %}disabled{% endif %}
|
||||
{% if attrs.readonly %}readonly{% endif %}
|
||||
{% if attrs.checked %}checked{% endif %}
|
||||
{% if attrs.name %}name="{{ attrs.name }}"{% endif %}
|
||||
{% if attrs.id %}id="{{ attrs.id }}"{% endif %}
|
||||
{% if attrs.placeholder %}placeholder="{{ attrs.placeholder }}"{% endif %}>{% slot value %}{% endslot %}</textarea>
|
||||
{% else %}
|
||||
{% if attrs.type != "checkbox" and attrs.type != "radio" %}
|
||||
<label for="{{ attrs.id }}">
|
||||
{% slot label %}
|
||||
{% endslot %}
|
||||
</label>
|
||||
{% endif %}
|
||||
<input {% if attrs.required %}required{% endif %}
|
||||
{% if attrs.disabled %}disabled{% endif %}
|
||||
{% if attrs.readonly %}readonly{% endif %}
|
||||
{% if attrs.checked %}checked{% endif %}
|
||||
{% if attrs.name %}name="{{ attrs.name }}"{% endif %}
|
||||
{% if attrs.id %}id="{{ attrs.id }}"{% endif %}
|
||||
{% if attrs.placeholder %}placeholder="{{ attrs.placeholder }}"{% endif %}
|
||||
{% if attrs.autocomplete %}autocomplete="{{ attrs.autocomplete }}"{% endif %}
|
||||
{% if attrs.value is not None %}value="{{ attrs.value }}"{% endif %}
|
||||
type="{{ attrs.type }}">
|
||||
{% if attrs.type == "checkbox" or attrs.type == "radio" %}
|
||||
<label for="{{ attrs.id }}">
|
||||
{% slot label %}
|
||||
{% endslot %}
|
||||
</label>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if slots.help_text %}
|
||||
<span>
|
||||
{% slot help_text %}
|
||||
{% endslot %}
|
||||
</span>
|
||||
{% endif %}
|
||||
</p>
|
||||
1
templates/allauth/elements/fields.html
Executable file
1
templates/allauth/elements/fields.html
Executable file
@@ -0,0 +1 @@
|
||||
{{ attrs.form.as_p }}
|
||||
7
templates/allauth/elements/form.html
Executable file
7
templates/allauth/elements/form.html
Executable file
@@ -0,0 +1,7 @@
|
||||
{% load allauth %}
|
||||
<form method="{{ attrs.method }}" action="{{ attrs.action }}">
|
||||
{% slot body %}
|
||||
{% endslot %}
|
||||
{% slot actions %}
|
||||
{% endslot %}
|
||||
</form>
|
||||
1
templates/allauth/elements/h1.html
Executable file
1
templates/allauth/elements/h1.html
Executable file
@@ -0,0 +1 @@
|
||||
{% comment %} djlint:off {% endcomment %}{% load allauth %}<h1>{% slot %}{% endslot %}</h1>
|
||||
1
templates/allauth/elements/h2.html
Executable file
1
templates/allauth/elements/h2.html
Executable file
@@ -0,0 +1 @@
|
||||
{% comment %} djlint:off {% endcomment %}{% load allauth %}<h2>{% slot %}{% endslot %}</h2>
|
||||
1
templates/allauth/elements/hr.html
Executable file
1
templates/allauth/elements/hr.html
Executable file
@@ -0,0 +1 @@
|
||||
<hr>
|
||||
2
templates/allauth/elements/img.html
Executable file
2
templates/allauth/elements/img.html
Executable file
@@ -0,0 +1,2 @@
|
||||
<img src="{{ attrs.src }}"
|
||||
{% if attrs.alt %}alt="{{ attrs.alt }}"{% endif %}>
|
||||
1
templates/allauth/elements/p.html
Executable file
1
templates/allauth/elements/p.html
Executable file
@@ -0,0 +1 @@
|
||||
{% comment %} djlint:off {% endcomment %}{% load allauth %}<p>{% slot %}{% endslot %}</p>
|
||||
14
templates/allauth/elements/panel.html
Executable file
14
templates/allauth/elements/panel.html
Executable file
@@ -0,0 +1,14 @@
|
||||
{% load allauth %}
|
||||
<section>
|
||||
<h2>
|
||||
{% slot title %}
|
||||
{% endslot %}
|
||||
</h2>
|
||||
{% slot body %}
|
||||
{% endslot %}
|
||||
{% if slots.actions %}
|
||||
<ul>
|
||||
{% for action in slots.actions %}<li>{{ action }}</li>{% endfor %}
|
||||
</ul>
|
||||
{% endif %}
|
||||
</section>
|
||||
3
templates/allauth/elements/provider.html
Executable file
3
templates/allauth/elements/provider.html
Executable file
@@ -0,0 +1,3 @@
|
||||
<li>
|
||||
<a title="{{ attrs.name }}" href="{{ attrs.href }}">{{ attrs.name }}</a>
|
||||
</li>
|
||||
5
templates/allauth/elements/provider_list.html
Executable file
5
templates/allauth/elements/provider_list.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<ul>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</ul>
|
||||
5
templates/allauth/elements/table.html
Executable file
5
templates/allauth/elements/table.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<table>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</table>
|
||||
5
templates/allauth/elements/tbody.html
Executable file
5
templates/allauth/elements/tbody.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<tbody>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</tbody>
|
||||
5
templates/allauth/elements/td.html
Executable file
5
templates/allauth/elements/td.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<td {% if attrs.align %}align="{{ attrs.align }}"{% endif %}>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</td>
|
||||
5
templates/allauth/elements/th.html
Executable file
5
templates/allauth/elements/th.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<th>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</th>
|
||||
5
templates/allauth/elements/thead.html
Executable file
5
templates/allauth/elements/thead.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<thead>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</thead>
|
||||
5
templates/allauth/elements/tr.html
Executable file
5
templates/allauth/elements/tr.html
Executable file
@@ -0,0 +1,5 @@
|
||||
{% load allauth %}
|
||||
<tr>
|
||||
{% slot %}
|
||||
{% endslot %}
|
||||
</tr>
|
||||
86
templates/allauth/layouts/base.html
Executable file
86
templates/allauth/layouts/base.html
Executable file
@@ -0,0 +1,86 @@
|
||||
{% load i18n %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>
|
||||
{% block head_title %}
|
||||
{% endblock head_title %}
|
||||
</title>
|
||||
{% block extra_head %}
|
||||
{% endblock extra_head %}
|
||||
</head>
|
||||
<body>
|
||||
{% block body %}
|
||||
{% if messages %}
|
||||
<div>
|
||||
<strong>{% trans "Messages:" %}</strong>
|
||||
<ul>
|
||||
{% for message in messages %}<li>{{ message }}</li>{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div>
|
||||
<strong>{% trans "Menu:" %}</strong>
|
||||
<ul>
|
||||
{% if user.is_authenticated %}
|
||||
{% url 'account_email' as email_url %}
|
||||
{% if email_url %}
|
||||
<li>
|
||||
<a href="{{ email_url }}">{% trans "Change Email" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'account_change_password' as change_password_url %}
|
||||
{% if change_password_url %}
|
||||
<li>
|
||||
<a href="{{ change_password_url }}">{% trans "Change Password" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'socialaccount_connections' as connections_url %}
|
||||
{% if connections_url %}
|
||||
<li>
|
||||
<a href="{{ connections_url }}">{% trans "Account Connection" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'mfa_index' as mfa_url %}
|
||||
{% if mfa_url %}
|
||||
<li>
|
||||
<a href="{{ mfa_url }}">{% trans "Two-Factor Authentication" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'usersessions_list' as usersessions_list_url %}
|
||||
{% if usersessions_list_url %}
|
||||
<li>
|
||||
<a href="{{ usersessions_list_url }}">{% trans "Sessions" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'account_logout' as logout_url %}
|
||||
{% if logout_url %}
|
||||
<li>
|
||||
<a href="{{ logout_url }}">{% trans "Sign Out" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% url 'account_login' as login_url %}
|
||||
{% if login_url %}
|
||||
<li>
|
||||
<a href="{{ login_url }}">{% trans "Sign In" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% url 'account_signup' as signup_url %}
|
||||
{% if signup_url %}
|
||||
<li>
|
||||
<a href="{{ signup_url }}">{% trans "Sign Up" %}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
{% block content %}
|
||||
{% endblock content %}
|
||||
{% endblock body %}
|
||||
{% block extra_body %}
|
||||
{% endblock extra_body %}
|
||||
</body>
|
||||
</html>
|
||||
2
templates/allauth/layouts/entrance.html
Executable file
2
templates/allauth/layouts/entrance.html
Executable file
@@ -0,0 +1,2 @@
|
||||
{% extends "allauth/layouts/base.html" %}
|
||||
{% block content %}{% endblock %}
|
||||
2
templates/allauth/layouts/manage.html
Executable file
2
templates/allauth/layouts/manage.html
Executable file
@@ -0,0 +1,2 @@
|
||||
{% extends "allauth/layouts/base.html" %}
|
||||
{% block content %}{% endblock %}
|
||||
Reference in New Issue
Block a user