First commit
This commit is contained in:
commit
440f5a7df4
1563 changed files with 217996 additions and 0 deletions
16
templates/users/account_update.html
Normal file
16
templates/users/account_update.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="profile-section">
|
||||
{% block profile-nav %}
|
||||
{% include "../partials/_profile_nav.html" %}
|
||||
{% endblock %}
|
||||
<div class="profile-details">
|
||||
<form method="POST" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ user_form.as_p }}
|
||||
<button type="submit" class="btn btn-primary">Mettre à jour</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
{% endblock %}
|
||||
13
templates/users/another_profile.html
Normal file
13
templates/users/another_profile.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="profile-section">
|
||||
{% block profile-nav %}
|
||||
{% include "../partials/_profile_nav.html" %}
|
||||
{% endblock %}
|
||||
<div class="profile-details">
|
||||
<p><strong>Pseudo :</strong> {{ user.username }}</p>
|
||||
<p><strong>Date d'nscription :</strong> {{ user.date_joined|date:"F j, Y" }}</p>
|
||||
<p><strong>Bio de profil :</strong> {{ user.profile.biography }}</p>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
13
templates/users/complete_profile.html
Normal file
13
templates/users/complete_profile.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
<!-- templates/users/complete_profile.html -->
|
||||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="form-section">
|
||||
<h2>Complète ton profil</h2>
|
||||
<p>La nouvelle mise à jour du site web te permet d'avoir un profil personnel. Tu peux remplir les champs suivant pour l'activer.</p>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn-submit">Save</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
11
templates/users/create_post.html
Normal file
11
templates/users/create_post.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section>
|
||||
<h2>Create Post</h2>
|
||||
<form method="post">
|
||||
{% csrf_token %}
|
||||
<!-- Add form fields for post creation here -->
|
||||
<button type="submit">Create Post</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
13
templates/users/login.html
Normal file
13
templates/users/login.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="form-section">
|
||||
<h2>Login</h2>
|
||||
<p>Pas encore inscrit ? <a href="{% url 'register' %}">Inscrivez-vous</a></p>
|
||||
<p class="login-info">En vous connectant, vous aurez accès à des fonctionnalités exclusives, telles que la gestion de vos cours, la participation aux discussions et la personnalisation de votre profil. Rejoignez notre communauté et profitez pleinement de tout ce que notre site a à offrir.</p>
|
||||
<form method="post" class="login-form">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn-submit">Login</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
17
templates/users/my_courses.html
Normal file
17
templates/users/my_courses.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="profile-section">
|
||||
{% block profile-nav %}
|
||||
{% include "../partials/_profile_nav.html" %}
|
||||
{% endblock %}
|
||||
<div class="profile-details">
|
||||
<h2>Mes cours</h2>
|
||||
<p>Retrouvez ici la liste de tous les cours que vous avez rédigés.</p>
|
||||
<ul>
|
||||
{% for course in user_courses %}
|
||||
<li><a href="{% url 'courses:show' course.id course.name|slugify %}">{{ course.name }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
18
templates/users/profile.html
Normal file
18
templates/users/profile.html
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="profile-section">
|
||||
{% block profile-nav %}
|
||||
{% include "../partials/_profile_nav.html" %}
|
||||
{% endblock %}
|
||||
<div class="profile-details">
|
||||
<p><strong>Username:</strong> {{ user.username }}</p>
|
||||
<p><strong>Email:</strong> {{ user.email }}</p>
|
||||
<p><strong>Nom complet:</strong> {{ user.profile.first_name }} {{ user.profile.last_name }}</p>
|
||||
<p><strong>Inscription:</strong> {{ user.date_joined|date:"F j, Y" }}</p>
|
||||
<p><strong>Bio:</strong> {{ user.profile.biography }}</p>
|
||||
</div>
|
||||
<div class="profile-actions">
|
||||
<a href="{% url 'profile_update' %}" class="btn btn-primary">Modifier le profil publique</a><br><br>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
11
templates/users/profile_update.html
Normal file
11
templates/users/profile_update.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section>
|
||||
<h2>Update Profile</h2>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ profile_form.as_p }}
|
||||
<button type="submit">Modifier</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
11
templates/users/register.html
Normal file
11
templates/users/register.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{% extends 'layout.html' %}
|
||||
{% block content %}
|
||||
<section class="form-section">
|
||||
<h2>Register</h2>
|
||||
<form method="post" class="login-form">
|
||||
{% csrf_token %}
|
||||
{{ form.as_p }}
|
||||
<button type="submit" class="btn-submit">Register</button>
|
||||
</form>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue