Added branding and updated layouts using base_authenticated.html; applied consistent Tailwind styling across authentication and ticket pages; improved usability with hover effects and clearer typography. New Features: - Enhancements: - Refactored login page layout to use a centered card with branding and modern styling. - Updated profile page to use the authenticated base template and a refined card design. - Enhanced ticket list page with a descriptive subtitle, SVG icon, and refined table styling including hover states and better typography. Bug Fixes: - Fixed template inheritance to use base_authenticated.html for profile and tickets pages. - Corrected form button text and styling for consistency.
40 lines
2.1 KiB
HTML
40 lines
2.1 KiB
HTML
{% extends "base_authenticated.html" %}
|
|
{% block title %}Profile{% endblock %}
|
|
{% block content_inner %}
|
|
<div class="max-w-2xl mx-auto">
|
|
<div class="bg-white rounded-2xl shadow-sm border border-gray-100 overflow-hidden">
|
|
<div class="bg-blue-600 px-6 py-12">
|
|
<div class="flex items-center gap-4">
|
|
<div class="w-16 h-16 rounded-full bg-white/20 flex items-center justify-center text-white text-2xl font-bold">
|
|
{{ profile_user.first_name|first|default:profile_user.username|first|upper }}
|
|
</div>
|
|
<div class="text-white">
|
|
<h1 class="text-2xl font-bold">{{ profile_user.get_full_name|default:profile_user.username }}</h1>
|
|
<p class="text-white/80">{{ profile_user.get_role_display }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="p-6 space-y-4">
|
|
<div class="grid grid-cols-2 gap-4">
|
|
<div class="p-4 bg-gray-50 rounded-xl">
|
|
<p class="text-xs text-gray-500 font-medium uppercase tracking-wider">Username</p>
|
|
<p class="text-sm font-semibold text-gray-900 mt-1">{{ profile_user.username }}</p>
|
|
</div>
|
|
<div class="p-4 bg-gray-50 rounded-xl">
|
|
<p class="text-xs text-gray-500 font-medium uppercase tracking-wider">Email</p>
|
|
<p class="text-sm font-semibold text-gray-900 mt-1">{{ profile_user.email|default:"-" }}</p>
|
|
</div>
|
|
<div class="p-4 bg-gray-50 rounded-xl">
|
|
<p class="text-xs text-gray-500 font-medium uppercase tracking-wider">Role</p>
|
|
<p class="text-sm font-semibold text-gray-900 mt-1">{{ profile_user.get_role_display }}</p>
|
|
</div>
|
|
<div class="p-4 bg-gray-50 rounded-xl">
|
|
<p class="text-xs text-gray-500 font-medium uppercase tracking-wider">Member Since</p>
|
|
<p class="text-sm font-semibold text-gray-900 mt-1">{{ profile_user.date_joined|date:"M Y" }}</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|