diff --git a/src/landppt/web/templates/profile.html b/src/landppt/web/templates/profile.html new file mode 100644 index 0000000..5ad141c --- /dev/null +++ b/src/landppt/web/templates/profile.html @@ -0,0 +1,159 @@ +{% extends "base.html" %} + +{% block title %}用户资料 - LandPPT{% endblock %} + +{% block content %} +
+

👤 用户资料

+

+ 管理您的账户信息和安全设置 +

+
+ +{% if error %} +
+ {{ error }} +
+{% endif %} + +{% if success %} +
+ {{ success }} +
+{% endif %} + +
+
+

📋 基本信息

+ +
+
+ 用户名: + {{ user.username }} +
+ + {% if user.email %} +
+ 邮箱: + {{ user.email }} +
+ {% endif %} + +
+ 账户状态: + {% if user.is_active %} + ✅ 活跃 + {% else %} + ❌ 已禁用 + {% endif %} +
+ +
+ 权限级别: + {% if user.is_admin %} + + 👑 管理员 + + {% else %} + + 👤 普通用户 + + {% endif %} +
+ +
+ 注册时间: + + + +
+ + {% if user.last_login %} +
+ 最后登录: + + + +
+ {% endif %} +
+
+ +
+

🔒 修改密码

+ +
+
+ + +
+ +
+ + + 密码长度至少6位 +
+ +
+ + +
+ +
+ +
+
+
+
+ +
+

⚙️ 快速操作

+ +
+ + 📈 项目仪表板 + + + + 🤖 AI配置 + + + + 🚪 退出登录 + +
+
+{% endblock %} + +{% block extra_js %} + +{% endblock %}