Cập nhật avatar và chỉnh sửa thông tin người dùng

This commit is contained in:
2026-06-09 15:21:22 +07:00
parent fd1027203d
commit 7f32eb816c
4 changed files with 205 additions and 28 deletions
+19 -1
View File
@@ -93,8 +93,26 @@
<div id="tab-profile" class="dashboard-tab-pane active">
<h3>Thông tin hồ sơ</h3>
<form id="profile-form" onsubmit="updateProfile(event)">
<div class="profile-header-edit">
<div class="avatar-edit-container">
<img id="profile-avatar-preview" src="" alt="Avatar" style="display:none;">
<div id="profile-avatar-placeholder" class="avatar-circle">?</div>
<label for="profile-avatar-input" class="avatar-upload-label">
<i class="fas fa-camera"></i> Thay đổi
</label>
<input type="file" id="profile-avatar-input" name="avatar" accept="image/*" onchange="previewAvatar(this)" style="display:none;">
</div>
</div>
<div class="form-group">
<label>Username</label>
<label>Họ và tên</label>
<input type="text" id="profile-fullname" name="fullName" required>
</div>
<div class="form-group">
<label>Email</label>
<input type="email" id="profile-email" name="email" required>
</div>
<div class="form-group">
<label>Tên đăng nhập (Username)</label>
<input type="text" id="profile-username" name="username" required>
</div>
<div class="form-group">