mirror of
https://github.com/thecyberlearn/modern-django-starter.git
synced 2026-08-18 07:52:54 +00:00
✨ Features: - Complete Django project with authentication - Email/password and social login (Google, Facebook) - Role-based access control (admin, staff, user) - Docker and Docker Compose setup - Production-ready configuration - Static file handling with WhiteNoise - PostgreSQL database integration - Comprehensive documentation - GitHub CI/CD workflows - Dokploy deployment configuration 🚀 Ready for deployment on Dokploy, Heroku, Railway, and other platforms
69 lines
2.9 KiB
HTML
69 lines
2.9 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block title %}Profile - Django Boilerplate{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-md-8">
|
|
<div class="card">
|
|
<div class="card-header d-flex justify-content-between align-items-center">
|
|
<h5>Your Profile</h5>
|
|
<a href="{% url 'accounts:profile_edit' %}" class="btn btn-primary btn-sm">Edit Profile</a>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="row">
|
|
<div class="col-md-4 text-center">
|
|
{% if user.profile.avatar %}
|
|
<img src="{{ user.profile.avatar.url }}" class="img-thumbnail" width="150" height="150">
|
|
{% else %}
|
|
<div class="bg-secondary d-flex align-items-center justify-content-center" style="width: 150px; height: 150px;">
|
|
<i class="text-white fs-1">👤</i>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div class="col-md-8">
|
|
<h4>{{ user.full_name|default:user.email }}</h4>
|
|
<p class="text-muted">{{ user.email }}</p>
|
|
|
|
{% if user.profile.bio %}
|
|
<p><strong>Bio:</strong> {{ user.profile.bio }}</p>
|
|
{% endif %}
|
|
|
|
{% if user.profile.location %}
|
|
<p><strong>Location:</strong> {{ user.profile.location }}</p>
|
|
{% endif %}
|
|
|
|
{% if user.profile.birth_date %}
|
|
<p><strong>Birth Date:</strong> {{ user.profile.birth_date }}</p>
|
|
{% endif %}
|
|
|
|
{% if user.profile.phone_number %}
|
|
<p><strong>Phone:</strong> {{ user.profile.phone_number }}</p>
|
|
{% endif %}
|
|
|
|
<p><strong>Member since:</strong> {{ user.date_joined|date:"M d, Y" }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-4">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h5>Account Status</h5>
|
|
</div>
|
|
<div class="card-body">
|
|
<p><strong>Email verified:</strong>
|
|
{% if user.is_verified %}
|
|
<span class="badge bg-success">Yes</span>
|
|
{% else %}
|
|
<span class="badge bg-warning">No</span>
|
|
{% endif %}
|
|
</p>
|
|
<p><strong>Account type:</strong> {{ user.groups.first.name|default:"User"|title }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %} |