diff --git a/templates/429.html b/templates/429.html new file mode 100644 index 0000000..723c8a0 --- /dev/null +++ b/templates/429.html @@ -0,0 +1,13 @@ +{% extends "allauth/layouts/entrance.html" %} + +{% load allauth %} + +{% block head_title %} + Too Many Requests +{% endblock head_title %} +{% block content %} + {% element h1 %} + Too Many Requests +{% endelement %} +

You are sending too many requests.

+{% endblock content %} diff --git a/templates/account/base_manage_email.html b/templates/account/base_manage_email.html new file mode 100644 index 0000000..7c18e31 --- /dev/null +++ b/templates/account/base_manage_email.html @@ -0,0 +1,5 @@ +{% extends "allauth/layouts/manage.html" %} + +{% block nav_class_email %} + {{ block.super }} bg-primary text-base-content +{% endblock nav_class_email %} diff --git a/templates/account/base_manage_password.html b/templates/account/base_manage_password.html new file mode 100644 index 0000000..62b98b4 --- /dev/null +++ b/templates/account/base_manage_password.html @@ -0,0 +1,5 @@ +{% extends "allauth/layouts/manage.html" %} + +{% block nav_class_password %} + {{ block.super }} bg-primary text-base-content +{% endblock nav_class_password %} diff --git a/templates/allauth/elements/alert.html b/templates/allauth/elements/alert.html new file mode 100644 index 0000000..3165bad --- /dev/null +++ b/templates/allauth/elements/alert.html @@ -0,0 +1,6 @@ +{% load allauth %} + +
+ {% slot message %} +{% endslot %} +
diff --git a/templates/allauth/elements/badge.html b/templates/allauth/elements/badge.html new file mode 100644 index 0000000..2e2dcbb --- /dev/null +++ b/templates/allauth/elements/badge.html @@ -0,0 +1,20 @@ +{% load allauth %} + +{% setvar variant %} +{% if "warning" in attrs.tags %} + warning +{% elif "danger" in attrs.tags %} + error +{% elif "secondary" in attrs.tags %} + secondary +{% elif "success" in attrs.tags %} + success +{% else %} + primary +{% endif %} +{% endsetvar %} + + {% slot %} +{% endslot %} + diff --git a/templates/allauth/elements/button.html b/templates/allauth/elements/button.html new file mode 100644 index 0000000..0dc3e4c --- /dev/null +++ b/templates/allauth/elements/button.html @@ -0,0 +1,33 @@ +{% 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.type %}type="{{ attrs.type }}"{% endif %} +{% if attrs.value %}value="{{ attrs.value }}"{% endif %} +class="{% block class %} + btn + {% if "link" in attrs.tags %}btn-link + {% else %} + {% if "prominent" in attrs.tags %}btn-md{% elif "minor" in attrs.tags %}btn-sm{% endif %} + {% if 'outline' in attrs.tags %}btn-outline{% endif %} + {% if "danger" in attrs.tags %}btn-error{% elif "secondary" in attrs.tags %}btn-secondary{% elif "warning" in attrs.tags %}btn-warning{% else %}btn-primary{% endif %} + {% endif %}{% endblock %}"> + {% if "tool" in attrs.tags %} + {% if "delete" in attrs.tags %} + + + + + {% elif "edit" in attrs.tags %} + + {% endif %} + {% endif %} + +{% if not "tool" in attrs.tags %} +{% slot %} +{% endslot %} +{% endif %} + diff --git a/templates/allauth/elements/button__entrance.html b/templates/allauth/elements/button__entrance.html new file mode 100644 index 0000000..311f280 --- /dev/null +++ b/templates/allauth/elements/button__entrance.html @@ -0,0 +1,8 @@ +{% extends "allauth/elements/button.html" %} + +{% load allauth %} + +{% block class %} + {{ block.super }} + w-full +{% endblock class %} diff --git a/templates/allauth/elements/button_group.html b/templates/allauth/elements/button_group.html new file mode 100644 index 0000000..4361b28 --- /dev/null +++ b/templates/allauth/elements/button_group.html @@ -0,0 +1,6 @@ +{% load allauth %} + +
+ {% slot %} +{% endslot %} +
diff --git a/templates/allauth/elements/field.html b/templates/allauth/elements/field.html new file mode 100644 index 0000000..6a9371d --- /dev/null +++ b/templates/allauth/elements/field.html @@ -0,0 +1,93 @@ +{% load allauth %} + +{% if attrs.type == "checkbox" or attrs.type == "radio" %} +
+ + {% if slots.help_text %} +
+ {% slot help_text %} + {% endslot %} +
+{% endif %} +
+{% elif attrs.type == "textarea" %} +
+ + +{% if slots.help_text %} +
+ {% slot help_text %} + {% endslot %} +
+{% endif %} +
+{% elif attrs.type == "hidden" %} + +{% else %} +
+ {% if not attrs.unlabeled %} + +{% endif %} + +{% if attrs.unlabeled %} + +{% endif %} +{% if slots.help_text %} +
+ {% slot help_text %} + {% endslot %} +
+{% endif %} +{% if attrs.errors %} + {% for error in attrs.errors %}
{{ error }}
{% endfor %} +{% endif %} +
+{% endif %} diff --git a/templates/allauth/elements/fields.html b/templates/allauth/elements/fields.html new file mode 100644 index 0000000..b3c2697 --- /dev/null +++ b/templates/allauth/elements/fields.html @@ -0,0 +1,12 @@ +{% load allauth %} + +{% for bound_field in attrs.form %} + {% element field unlabeled=attrs.unlabeled name=bound_field.name type=bound_field.field.widget.input_type required=bound_field.field.required value=bound_field.value id=bound_field.auto_id errors=bound_field.errors placeholder=bound_field.field.widget.attrs.placeholder tabindex=bound_field.field.widget.attrs.tabindex autocomplete=bound_field.field.widget.attrs.autocomplete style=bound_field.field.widget.attrs.style %} + {% slot label %} + {{ bound_field.label }} +{% endslot %} +{% slot help_text %} +{{ bound_field.field.help_text }} +{% endslot %} +{% endelement %} +{% endfor %} diff --git a/templates/allauth/elements/form.html b/templates/allauth/elements/form.html new file mode 100644 index 0000000..256eba3 --- /dev/null +++ b/templates/allauth/elements/form.html @@ -0,0 +1,15 @@ +{% load allauth %} + +{% for err in attrs.form.non_field_errors %}
{{ err }}
{% endfor %} +
+ {% if not attrs.no_visible_fields %}
{% endif %} + {% slot body %} + {% endslot %} + {% if not attrs.no_visible_fields %}
{% endif %} +{% if not attrs.no_visible_fields %}
{% endif %} + {% slot actions %} +{% endslot %} +{% if not attrs.no_visible_fields %}
{% endif %} +
diff --git a/templates/allauth/elements/form__entrance.html b/templates/allauth/elements/form__entrance.html new file mode 100644 index 0000000..d4964b5 --- /dev/null +++ b/templates/allauth/elements/form__entrance.html @@ -0,0 +1,4 @@ +{% extends "allauth/elements/form.html" %} + +{% block form_class %} +{% endblock form_class %} diff --git a/templates/allauth/elements/h1.html b/templates/allauth/elements/h1.html new file mode 100644 index 0000000..5e6dd6f --- /dev/null +++ b/templates/allauth/elements/h1.html @@ -0,0 +1,6 @@ +{% load allauth %} + +

+ {% slot %} +{% endslot %} +

diff --git a/templates/allauth/elements/h1__entrance.html b/templates/allauth/elements/h1__entrance.html new file mode 100644 index 0000000..fd30e5b --- /dev/null +++ b/templates/allauth/elements/h1__entrance.html @@ -0,0 +1,6 @@ +{% load allauth %} + +

+ {% slot %} +{% endslot %} +

diff --git a/templates/allauth/elements/h2__entrance.html b/templates/allauth/elements/h2__entrance.html new file mode 100644 index 0000000..2e751a8 --- /dev/null +++ b/templates/allauth/elements/h2__entrance.html @@ -0,0 +1,6 @@ +{% load allauth %} + +

+ {% slot %} +{% endslot %} +

diff --git a/templates/allauth/elements/img.html b/templates/allauth/elements/img.html new file mode 100644 index 0000000..41d00ef --- /dev/null +++ b/templates/allauth/elements/img.html @@ -0,0 +1,5 @@ +
+ +
diff --git a/templates/allauth/elements/panel.html b/templates/allauth/elements/panel.html new file mode 100644 index 0000000..9414455 --- /dev/null +++ b/templates/allauth/elements/panel.html @@ -0,0 +1,18 @@ +{% load allauth %} + +
+
+
+ {% slot title %} + {% endslot %} +
+ {% slot body %} +{% endslot %} +
+{% if slots.actions %} +
+ {% slot actions %} + {% endslot %} +
+{% endif %} +
diff --git a/templates/allauth/elements/provider.html b/templates/allauth/elements/provider.html new file mode 100644 index 0000000..d3d0d88 --- /dev/null +++ b/templates/allauth/elements/provider.html @@ -0,0 +1,5 @@ +{% load allauth %} + +{{ attrs.name }} diff --git a/templates/allauth/elements/provider_list.html b/templates/allauth/elements/provider_list.html new file mode 100644 index 0000000..ff6ed89 --- /dev/null +++ b/templates/allauth/elements/provider_list.html @@ -0,0 +1,6 @@ +{% load allauth %} + +
+ {% slot %} +{% endslot %} +
diff --git a/templates/allauth/elements/table.html b/templates/allauth/elements/table.html new file mode 100644 index 0000000..66fedce --- /dev/null +++ b/templates/allauth/elements/table.html @@ -0,0 +1,6 @@ +{% load allauth %} + + + {% slot %} +{% endslot %} +
diff --git a/templates/allauth/layouts/entrance.html b/templates/allauth/layouts/entrance.html new file mode 100644 index 0000000..5c9d73b --- /dev/null +++ b/templates/allauth/layouts/entrance.html @@ -0,0 +1,29 @@ +{% extends "base.html" %} + +{% load allauth %} + +{% block body %} +
+
+
+
+ {% if messages %} + {% for message in messages %} + {% element alert level=message.tags %} + {% slot message %} + {{ message }} + {% endslot %} + {% endelement %} + {% endfor %} + {% endif %} +
+
+ {% block content %} + {% endblock content %} +
+
+
+
+
+
+{% endblock body %} diff --git a/templates/allauth/layouts/manage.html b/templates/allauth/layouts/manage.html new file mode 100644 index 0000000..9867745 --- /dev/null +++ b/templates/allauth/layouts/manage.html @@ -0,0 +1,64 @@ +{% extends "base.html" %} + +{% load allauth %} + +{% block body %} +
+ +
+
+ {% if messages %} +
+ {% for message in messages %} + {% element alert level=message.tags %} + {% slot message %} + {{ message }} + {% endslot %} + {% endelement %} + {% endfor %} +
+ {% endif %} + {% block content %} + {% endblock content %} +
+
+
+{% endblock body %} diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..0e50f30 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,10 @@ +{% extends "allauth/layouts/entrance.html" %} + +{% load allauth %} + +{% block content %} + {% element h1 %} + Example Project +{% endelement %} +

Welcome to the django-allauth example project.

+{% endblock content %} diff --git a/templates/mfa/base_manage.html b/templates/mfa/base_manage.html new file mode 100644 index 0000000..d29d4eb --- /dev/null +++ b/templates/mfa/base_manage.html @@ -0,0 +1,5 @@ +{% extends "allauth/layouts/manage.html" %} + +{% block nav_class_mfa %} + {{ block.super }} bg-primary text-base-content +{% endblock nav_class_mfa %} diff --git a/templates/profile.html b/templates/profile.html new file mode 100644 index 0000000..ce402dc --- /dev/null +++ b/templates/profile.html @@ -0,0 +1,10 @@ +{% extends "allauth/layouts/manage.html" %} + +{% load allauth %} + +{% block content %} + {% element h1 %} + Profile +{% endelement %} +

Your profile

+{% endblock content %} diff --git a/templates/socialaccount/base_manage.html b/templates/socialaccount/base_manage.html new file mode 100644 index 0000000..9921f6f --- /dev/null +++ b/templates/socialaccount/base_manage.html @@ -0,0 +1,5 @@ +{% extends "allauth/layouts/manage.html" %} + +{% block nav_class_socialaccount %} + {{ block.super }} bg-primary text-base-content +{% endblock nav_class_socialaccount %} diff --git a/templates/usersessions/base_manage.html b/templates/usersessions/base_manage.html new file mode 100644 index 0000000..3828380 --- /dev/null +++ b/templates/usersessions/base_manage.html @@ -0,0 +1,5 @@ +{% extends "allauth/layouts/manage.html" %} + +{% block nav_class_usersessions %} + {{ block.super }} bg-primary text-base-content +{% endblock nav_class_usersessions %}