Update README.md + added navbar because I was annoyed to always change the URI to change page

master
Corentin LEMAIRE 6 months ago
parent 0a32fb4a8e
commit 799497fe9b

@ -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

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<h1>Courses for {{ person.name }}</h1>
{% if courses %}
{% for course in courses %}

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<form action="{% url 'create_course_form' %}" method="POST">
{% csrf_token %}
<fieldset>

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
{% if error_message %}
{{ error_message }}
{% endif %}

@ -1,13 +1,19 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
{% if person != '' %}
<h1>Welcome {{ person.name }}!</h1>
{% else %}
<h1>Welcome young padawan!</h1>
{% endif %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
</body>
</html>

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person.name == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<form action="{% url 'login' %}" method="POST">
{% csrf_token %}
<fieldset>
@ -14,7 +24,6 @@
</select>
</fieldset>
<input type="submit" value="Login">
<a href="{% url 'register_form' %}">Register</a>
</form>
</body>
</html>

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<form action="{% url 'change_profile' %}" method="POST">
{% csrf_token %}
<fieldset>
@ -15,6 +25,5 @@
</fieldset>
<input type="submit" value="Update">
</form>
<a href="{% url 'home' %}">Home</a>
</body>
</html>

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person.name == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<form action="{% url 'register' %}" method="POST">
{% csrf_token %}
<fieldset>

@ -1,7 +0,0 @@
<html>
<body>
{% for user in users %}
{{ user }}
{% endfor %}
</body>
</html>

@ -1,5 +1,15 @@
<html>
<body>
<nav>
<a href="{% url 'home' %}">Home</a>
{% if person == '' %}
<a href="{% url 'login_form' %}">Login</a>
<a href="{% url 'register_form' %}">Register</a>
{% else %}
<a href="{% url 'courses' %}">Courses</a>
<a href="{% url 'profile' %}">Profile</a>
{% endif %}
</nav>
<form action="{% url 'update_course_form' course.id %}" method="POST">
{% csrf_token %}
<fieldset>

Loading…
Cancel
Save