Spaces:
Runtime error
Runtime error
File size: 895 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>Add {{ user_type.title() }}</title>
</head>
<body>
<h1>Add {{ 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" required><br><br>
{% endif %}
{% if user_type == 'doctors' %}
<label for="specialization">Specialization:</label>
<input type="text" id="specialization" name="specialization" required><br><br>
{% endif %}
<label for="username">Username:</label>
<input type="text" id="username" name="username" required><br><br>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required><br><br>
<button type="submit">Add</button>
</form>
</body>
</html> |