Add initial migrations, admin configurations, and base CSS for the project
This commit is contained in:
parent
16897b6010
commit
8fe6fe5390
19 changed files with 2101 additions and 68 deletions
|
|
@ -1,11 +1,39 @@
|
|||
{% 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 class="profile-section">
|
||||
{% include "../partials/_profile_nav.html" %}
|
||||
|
||||
<div class="profile-content">
|
||||
<div class="profile-grid">
|
||||
<div class="profile-card">
|
||||
<h3>Modifier mon profil public</h3>
|
||||
<div style="display:flex; align-items:center; gap:16px; margin: 10px 0 14px;">
|
||||
<img src="/{{ user.profile.avatar }}" alt="Avatar actuel" class="profile-avatar" style="width:72px;height:72px;margin-top:0;">
|
||||
<div>
|
||||
<div class="muted">Aperçu de l’avatar actuel</div>
|
||||
<small class="muted">Vous pouvez téléverser une nouvelle image ci‑dessous.</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
{{ profile_form.as_p }}
|
||||
<div class="text-right" style="margin-top:12px; display:flex; gap:8px; justify-content:flex-end;">
|
||||
<a href="{% url 'profile' %}" class="btn btn-secondary">Annuler</a>
|
||||
<button type="submit" class="btn btn-primary">Enregistrer</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="profile-card">
|
||||
<h3>Conseils</h3>
|
||||
<ul class="profile-about-list">
|
||||
<li>Utilisez votre vrai nom pour être plus facilement reconnu.</li>
|
||||
<li>Une bio claire aide la communauté à mieux vous connaître.</li>
|
||||
<li>Privilégiez une photo carrée pour un meilleur rendu.</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue