temperature-alarm/frontend/profile/index.html
2025-03-25 16:11:14 +01:00

76 lines
3.0 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Register - Temperature Alarm</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/styles/auth.css">
<link rel="stylesheet" href="/styles/profile.css">
<script defer type="module" src="/scripts/profile.js"></script>
<script defer type="module" src="/shared/utils.js"></script>
</head>
<body>
<div id="container">
<div class="topnav">
<a href="/home/index.html">Home</a>
<a href="/devices/index.html">Devices</a>
<div style="display: flex; justify-content: flex-end;">
<a class="active" href="/profile/index.html">Profile</a>
<span class="logoutContainer">
<img class="logout" src="/img/logout.png">
</span>
</div>
</div>
<div id="profileCard"></div>
<div class="btnContainer">
<button class="btn" id="openEditModal">Edit</button>
<button class="btn" id="openPasswordModal">Change Password</button>
</div>
</div>
<div id="editModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2>Edit Username or Email</h2>
<form id="editForm">
<div class="form-container">
<label for="email"><b>Email</b></label>
<input type="email" placeholder="Enter email "id="email">
<label for="uname"><b>Username</b></label>
<input type="text" placeholder="Enter username" id="uname">
<button type="submit">Save Changes</button>
</div>
</form>
</div>
</div>
<div id="PasswordModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<h2>Change Password</h2>
<form id="PasswordForm">
<div class="form-container">
<label for="psw"><b>Old Password</b></label>
<input type="password" placeholder="Enter your current password" id="oldpsw" required>
<label for="psw"><b>New Password</b></label>
<input type="password" placeholder="Enter the new password" id="psw" required>
<label for="rpsw"><b>Repeat New Password</b></label>
<input type="password" placeholder="Enter the new password again" id="rpsw" required>
<button type="submit">Change Password</button>
<div id="form-error"></div>
</div>
</form>
</div>
</div>
</body>
</html>