diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-09 17:16:41 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-09 17:16:41 +0000 |
commit | b481069d9444cc0756bd9f6780e7700dcf4903f5 (patch) | |
tree | 5cba9e3d501f79747c8af22bd1b0fd7d783e7ded /alphabetlearning/templates | |
parent | d3dda8c0bd194c28cf11c189c150c00bdc3e8a83 (diff) |
wip: moving home page to home app and implementing reCAPTCHA
Diffstat (limited to '')
-rw-r--r-- | alphabetlearning/templates/base.html | 2 | ||||
-rw-r--r-- | alphabetlearning/templates/pages/home.html | 3 | ||||
-rw-r--r-- | alphabetlearning/templates/payments/rate_limited.html | 11 |
3 files changed, 15 insertions, 1 deletions
diff --git a/alphabetlearning/templates/base.html b/alphabetlearning/templates/base.html index 5aa2193..f26fb72 100644 --- a/alphabetlearning/templates/base.html +++ b/alphabetlearning/templates/base.html @@ -59,7 +59,7 @@ <header> <nav class="navbar navbar-expand-lg navbar-light bg-white"> <div class="container-fluid"> - <a class="navbar-brand" href="{% url "home" %}"> + <a class="navbar-brand" href="{% url "pages:home" %}"> <img style="margin-left: 2rem; margin-top: 20px;" src="{% static "images/AL_long_logo_black_grey.png" %}" width=300px alt="Alphabet Learning Logo"> </a> <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav" diff --git a/alphabetlearning/templates/pages/home.html b/alphabetlearning/templates/pages/home.html index 6261524..0d00042 100644 --- a/alphabetlearning/templates/pages/home.html +++ b/alphabetlearning/templates/pages/home.html @@ -65,6 +65,9 @@ placeholder="Your email address..." /> </div> + <div> + {{ form.captcha }} + </div> <button type="submit" style=" diff --git a/alphabetlearning/templates/payments/rate_limited.html b/alphabetlearning/templates/payments/rate_limited.html new file mode 100644 index 0000000..c75e474 --- /dev/null +++ b/alphabetlearning/templates/payments/rate_limited.html @@ -0,0 +1,11 @@ +{% extends "base.html" %} + +{% load static %} + +{% block content %} + <div class="container my-5"> + <div class="row"> + <h2>You have made to many submissions</h2> + <p>Please try again later.</p> + </div> +{% endblock content %} |