stylehub/templates/userActions.html

48 lines
1.6 KiB
HTML
Raw Normal View History

2024-02-03 17:35:45 +01:00
<!-- Centralized Status Message -->
<p id="StatusMessage"></p>
2024-02-05 22:52:44 +01:00
<div id="user-settings">
<button type="button" onclick="logout()">Logout</button><br>
2024-02-03 17:35:45 +01:00
2024-02-05 22:52:44 +01:00
<div class="form-container" id="updateUserProfileForm">
<h1>Update User</h1>
2024-02-04 09:28:38 +01:00
2024-02-05 22:52:44 +01:00
<h2>Profile</h2>
<label for="updateFirstName">First Name:</label>
<input type="text" id="updateFirstName" name="updateFirstName" required><br>
2024-02-04 09:57:48 +01:00
2024-02-05 22:52:44 +01:00
<label for="updateLastName">Last Name:</label>
<input type="text" id="updateLastName" name="updateLastName" required><br>
2024-02-04 09:28:38 +01:00
2024-02-05 22:52:44 +01:00
<label for="updateNickname">Nickname:</label>
<input type="text" id="updateNickname" name="updateNickname" required><br>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<label for="updateMinecraftNick">Minecraft Nick:</label>
<input type="text" id="updateMinecraftNick" name="updateMinecraftNick" required><br>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<button type="button" onclick="updateUserProfile()">Update Profile</button>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<br><br>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<h2>Email</h2>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<label for="updateNewEmail">New Email:</label>
<input type="email" id="updateNewEmail" name="updateNewEmail" required><br>
2024-02-04 09:57:48 +01:00
2024-02-05 22:52:44 +01:00
<button type="button" onclick="updateEmail()">Update Email</button>
2024-02-04 09:26:17 +01:00
2024-02-05 22:52:44 +01:00
<br><br>
2024-02-03 16:08:26 +01:00
2024-02-05 22:52:44 +01:00
<h2>Password</h2>
2024-02-04 09:57:48 +01:00
2024-02-05 22:52:44 +01:00
<label for="changeOldPassword">Old Password:</label>
<input type="password" id="changeOldPassword" name="changeOldPassword" required><br>
2024-02-04 09:28:38 +01:00
2024-02-05 22:52:44 +01:00
<label for="changeNewPassword">New Password:</label>
<input type="password" id="changeNewPassword" name="changeNewPassword" required><br>
2024-02-03 17:30:51 +01:00
2024-02-05 22:52:44 +01:00
<button type="button" onclick="changePassword()">Change Password</button>
</div>
2024-02-03 17:30:51 +01:00
</div>
2024-02-04 09:28:38 +01:00
<hr>