Swift-Query / templates /admin /edit_user.html
Darshan Kumar R
Deploy to Hugging Face Spaces (Clean)
ed0b977
Raw History Blame Contribute Delete
992 Bytes
<!DOCTYPE html>
<html>
<head>
<title>Edit {{ user_type.title() }}</title>
</head>
<body>
<h1>Edit {{ user_type.title() }}</h1>
<form method="post">
{% if user_type == 'doctors' or user_type == 'patients' %}
<label for="name">Name:</label>
<input type="text" id="name" name="name" value="{{ user.name }}" required><br><br>
{% endif %}
{% if user_type == 'doctors' %}
<label for="specialization">Specialization:</label>
<input type="text" id="specialization" name="specialization" value="{{ user.specialization }}" required><br><br>
{% endif %}
<label for="username">Username:</label>
<input type="text" id="username" name="username" value="{{ user.username }}" required><br><br>
<label for="password">New Password (optional):</label>
<input type="password" id="password" name="password"><br><br>
<button type="submit">Update</button>
</form>
</body>
</html>