File size: 992 Bytes
ed0b977
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<!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>