From 799497fe9b248c3ec95fdbbde6e18dfdbb392be7 Mon Sep 17 00:00:00 2001 From: Corentin Date: Sun, 27 Oct 2024 12:21:42 +0100 Subject: [PATCH] Update README.md + added navbar because I was annoyed to always change the URI to change page --- README.md | 2 -- redis_app/templates/courses.html | 10 ++++++++++ redis_app/templates/create.html | 10 ++++++++++ redis_app/templates/details.html | 10 ++++++++++ redis_app/templates/home.html | 14 ++++++++++---- redis_app/templates/login.html | 11 ++++++++++- redis_app/templates/profile.html | 11 ++++++++++- redis_app/templates/register.html | 10 ++++++++++ redis_app/templates/test.html | 7 ------- redis_app/templates/update.html | 10 ++++++++++ 10 files changed, 80 insertions(+), 15 deletions(-) delete mode 100644 redis_app/templates/test.html diff --git a/README.md b/README.md index 64cfca1..594c22b 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,6 @@ Don't try to go into http://localhost:8000/admin, you won't have the rights and ## TODO -- Update course - - Publish a message - Register to a course diff --git a/redis_app/templates/courses.html b/redis_app/templates/courses.html index 36a9b68..d6aacad 100644 --- a/redis_app/templates/courses.html +++ b/redis_app/templates/courses.html @@ -1,5 +1,15 @@ +

Courses for {{ person.name }}

{% if courses %} {% for course in courses %} diff --git a/redis_app/templates/create.html b/redis_app/templates/create.html index 67fce04..cce26d8 100644 --- a/redis_app/templates/create.html +++ b/redis_app/templates/create.html @@ -1,5 +1,15 @@ +
{% csrf_token %}
diff --git a/redis_app/templates/details.html b/redis_app/templates/details.html index 6924bb6..8dd870d 100644 --- a/redis_app/templates/details.html +++ b/redis_app/templates/details.html @@ -1,5 +1,15 @@ + {% if error_message %} {{ error_message }} {% endif %} diff --git a/redis_app/templates/home.html b/redis_app/templates/home.html index 83b08c4..6a70f27 100644 --- a/redis_app/templates/home.html +++ b/redis_app/templates/home.html @@ -1,13 +1,19 @@ + {% if person != '' %}

Welcome {{ person.name }}!

{% else %}

Welcome young padawan!

{% endif %} - Login - Register - Courses - Profile \ No newline at end of file diff --git a/redis_app/templates/login.html b/redis_app/templates/login.html index 5c406fc..9ca8983 100644 --- a/redis_app/templates/login.html +++ b/redis_app/templates/login.html @@ -1,5 +1,15 @@ + {% csrf_token %}
@@ -14,7 +24,6 @@
- Register \ No newline at end of file diff --git a/redis_app/templates/profile.html b/redis_app/templates/profile.html index 6de4c27..6919847 100644 --- a/redis_app/templates/profile.html +++ b/redis_app/templates/profile.html @@ -1,5 +1,15 @@ +
{% csrf_token %}
@@ -15,6 +25,5 @@
- Home \ No newline at end of file diff --git a/redis_app/templates/register.html b/redis_app/templates/register.html index 94ee63a..c254296 100644 --- a/redis_app/templates/register.html +++ b/redis_app/templates/register.html @@ -1,5 +1,15 @@ +
{% csrf_token %}
diff --git a/redis_app/templates/test.html b/redis_app/templates/test.html deleted file mode 100644 index d343734..0000000 --- a/redis_app/templates/test.html +++ /dev/null @@ -1,7 +0,0 @@ - - - {% for user in users %} - {{ user }} - {% endfor %} - - \ No newline at end of file diff --git a/redis_app/templates/update.html b/redis_app/templates/update.html index a346203..a02d6e9 100644 --- a/redis_app/templates/update.html +++ b/redis_app/templates/update.html @@ -1,5 +1,15 @@ + {% csrf_token %}