aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/templates/allauth
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
committerMatthew Lemon <y@yulqen.org>2024-10-15 21:01:31 +0100
commiteeaddb27560d723ca7d61359744ceb2709fccd2d (patch)
tree04ddbc49ae7b73d5f5a9e1716d7227aecd3b9f85 /alphabetlearning/templates/allauth
parent7a3044c859043837e6c7c95bb4894d04e9b2cbc2 (diff)
Renamed from pyblackbird_cc to alphabetlearning - everywhere
Diffstat (limited to 'alphabetlearning/templates/allauth')
-rw-r--r--alphabetlearning/templates/allauth/elements/alert.html7
-rw-r--r--alphabetlearning/templates/allauth/elements/badge.html6
-rw-r--r--alphabetlearning/templates/allauth/elements/button.html20
-rw-r--r--alphabetlearning/templates/allauth/elements/field.html66
-rw-r--r--alphabetlearning/templates/allauth/elements/fields.html3
-rw-r--r--alphabetlearning/templates/allauth/elements/h1.html5
-rw-r--r--alphabetlearning/templates/allauth/elements/h2.html5
-rw-r--r--alphabetlearning/templates/allauth/elements/panel.html19
-rw-r--r--alphabetlearning/templates/allauth/elements/table.html6
-rw-r--r--alphabetlearning/templates/allauth/layouts/entrance.html44
-rw-r--r--alphabetlearning/templates/allauth/layouts/manage.html6
11 files changed, 187 insertions, 0 deletions
diff --git a/alphabetlearning/templates/allauth/elements/alert.html b/alphabetlearning/templates/allauth/elements/alert.html
new file mode 100644
index 0000000..535d394
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/alert.html
@@ -0,0 +1,7 @@
+{% load i18n %}
+{% load allauth %}
+
+<div class="alert alert-error">
+ {% slot message %}
+{% endslot %}
+</div>
diff --git a/alphabetlearning/templates/allauth/elements/badge.html b/alphabetlearning/templates/allauth/elements/badge.html
new file mode 100644
index 0000000..e86669b
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/badge.html
@@ -0,0 +1,6 @@
+{% load allauth %}
+
+<span class="badge {% if 'success' in attrs.tags %}bg-success{% endif %} {% if 'warning' in attrs.tags %}bg-warning{% endif %} {% if 'secondary' in attrs.tags %}bg-secondary{% endif %} {% if 'danger' in attrs.tags %}bg-danger{% endif %} {% if 'primary' in attrs.tags %}bg-primary{% endif %}">
+ {% slot %}
+{% endslot %}
+</span>
diff --git a/alphabetlearning/templates/allauth/elements/button.html b/alphabetlearning/templates/allauth/elements/button.html
new file mode 100644
index 0000000..b88a209
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/button.html
@@ -0,0 +1,20 @@
+{% 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 %}
+ class="btn
+{% if 'success' in attrs.tags %}btn-success
+{% elif 'warning' in attrs.tags %}btn-warning
+{% elif 'secondary' in attrs.tags %}btn-secondary
+{% elif 'danger' in attrs.tags %}btn-danger
+{% elif 'primary' in attrs.tags %}btn-primary
+{% else %}btn-primary
+{% endif %}"
+>
+ {% slot %}
+ {% endslot %}
+ </{% if attrs.href %}a{% else %}button{% endif %}>
diff --git a/alphabetlearning/templates/allauth/elements/field.html b/alphabetlearning/templates/allauth/elements/field.html
new file mode 100644
index 0000000..dc5f303
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/field.html
@@ -0,0 +1,66 @@
+{% load allauth %}
+{% load crispy_forms_tags %}
+
+{% if attrs.type == "textarea" %}
+ <div class="row mb-3">
+ <div class="col-sm-10">
+ <label for="{{ attrs.id }}">
+ {% slot label %}
+ {% endslot %}
+ </label>
+ </div>
+ <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 %}
+ class="form-control">{% slot value %}{% endslot %}</textarea>
+</div>
+{% elif attrs.type == "radio" %}
+<div class="row mb-3">
+ <div class="col-sm-10">
+ <div class="form-check">
+ <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 %}
+ value="{{ attrs.value|default_if_none:"" }}"
+ type="{{ attrs.type }}" />
+ <label class="form-check-label" for="{{ attrs.id }}">
+ {% slot label %}
+ {% endslot %}
+ </label>
+ </div>
+</div>
+</div>
+{% else %}
+<div class="col-sm-10">
+ <label for="{{ attrs.id }}">
+ {% slot label %}
+ {% endslot %}
+</label>
+</div>
+<div class="col-sm-10">
+ <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 %}
+ value="{{ attrs.value|default_if_none:"" }}"
+ type="{{ attrs.type }}"
+ class="form-control" />
+</div>
+{% endif %}
+{% if slots.help_text %}
+ <div class="form-text">{% slot help_text %}{% endslot %}</div>
+{% endif %}
diff --git a/alphabetlearning/templates/allauth/elements/fields.html b/alphabetlearning/templates/allauth/elements/fields.html
new file mode 100644
index 0000000..ae8e104
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/fields.html
@@ -0,0 +1,3 @@
+{% load crispy_forms_tags %}
+
+{{ attrs.form|crispy }}
diff --git a/alphabetlearning/templates/allauth/elements/h1.html b/alphabetlearning/templates/allauth/elements/h1.html
new file mode 100644
index 0000000..40ebed8
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/h1.html
@@ -0,0 +1,5 @@
+{% load allauth %}
+<h1>
+ {% slot default %}
+ {% endslot %}
+</h1>
diff --git a/alphabetlearning/templates/allauth/elements/h2.html b/alphabetlearning/templates/allauth/elements/h2.html
new file mode 100644
index 0000000..e2b412a
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/h2.html
@@ -0,0 +1,5 @@
+{% load allauth %}
+<h2>
+ {% slot default %}
+ {% endslot %}
+</h2>
diff --git a/alphabetlearning/templates/allauth/elements/panel.html b/alphabetlearning/templates/allauth/elements/panel.html
new file mode 100644
index 0000000..43a7a54
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/panel.html
@@ -0,0 +1,19 @@
+{% load allauth %}
+
+<section>
+ <div class="card mb-4">
+ <div class="card-body">
+ <h2 class="card-title">
+ {% slot title %}
+ {% endslot %}
+ </h2>
+ {% slot body %}
+ {% endslot %}
+ {% if slots.actions %}
+ <ul>
+ {% for action in slots.actions %}<li>{{ action }}</li>{% endfor %}
+ </ul>
+ {% endif %}
+</div>
+</div>
+</section>
diff --git a/alphabetlearning/templates/allauth/elements/table.html b/alphabetlearning/templates/allauth/elements/table.html
new file mode 100644
index 0000000..13cc5da
--- /dev/null
+++ b/alphabetlearning/templates/allauth/elements/table.html
@@ -0,0 +1,6 @@
+{% load allauth %}
+
+<table class="table">
+ {% slot %}
+{% endslot %}
+</table>
diff --git a/alphabetlearning/templates/allauth/layouts/entrance.html b/alphabetlearning/templates/allauth/layouts/entrance.html
new file mode 100644
index 0000000..fedeb31
--- /dev/null
+++ b/alphabetlearning/templates/allauth/layouts/entrance.html
@@ -0,0 +1,44 @@
+{% extends "base.html" %}
+
+{% load allauth %}
+
+{% load i18n %}
+
+{% block bodyclass %}
+ bg-light
+{% endblock bodyclass %}
+{% block css %}
+ {{ block.super }}
+{% endblock css %}
+{% block title %}
+ {% block head_title %}
+ {% trans "Sign In" %}
+ {% endblock head_title %}
+{% endblock title %}
+{% block body %}
+ <div class="d-flex justify-content-center h-100 py-4">
+ <div class="col-md-4 py-4 my-4 px-4">
+ {% if messages %}
+ {% for message in messages %}
+ <div class="alert alert-dismissible {% if message.tags %}alert-{{ message.tags }}{% endif %}">
+ {{ message }}
+ <button type="button"
+ class="btn-close"
+ data-bs-dismiss="alert"
+ aria-label="Close"></button>
+ </div>
+ {% endfor %}
+ {% endif %}
+
+ {% element h2 %}Coming soon!{% endelement %}
+
+ <p>Alphabet Learning is a brand new platform selling high quality educational resources. As of October 2024, the site is currently in active development
+ and will be launched soon.</p>
+
+ <hr>
+
+ {% block content %}
+ {% endblock content %}
+ </div>
+ </div>
+{% endblock body %}
diff --git a/alphabetlearning/templates/allauth/layouts/manage.html b/alphabetlearning/templates/allauth/layouts/manage.html
new file mode 100644
index 0000000..75b4959
--- /dev/null
+++ b/alphabetlearning/templates/allauth/layouts/manage.html
@@ -0,0 +1,6 @@
+{% extends "base.html" %}
+
+{% block main %}
+ {% block content %}
+ {% endblock content %}
+{% endblock main %}