File size: 1,155 Bytes
9697624
 
 
79d7ca9
843bda3
 
9697624
 
79d7ca9
9697624
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79d7ca9
9697624
10f29f7
 
 
79d7ca9
9697624
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
    <title>Econnect User Registration</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="static/css/mvp.css" rel="stylesheet" media="screen">
</head>
<body>
    <div class=""container">
    <h2>User Registration</h2>
    <form action="/admin/register_user" method="post" enctype="multipart/form-data">
        <label for="email">User ID (Email):</label>
        <input type="email" id="email" name="email" required><br>

        <label for="name">Name:</label>
        <input type="text" id="name" name="name" required><br>

        <label for="role">Role:</label>
        <select id="role" name="role">
            <option value="Student">Student</option>
            <option value="Teacher">Teacher</option>
        </select><br>

        <label for="file">Profile Picture (.jpg):</label>
        <input type="file" id="file" name="file" accept=".jpg" required><br>

        <button type="submit" class="btn btn-default" >Register</button>
    </form>
    {% if error %}
        <p class="error"><strong>Error:</strong> {{ error }}
    {% endif %}
    </div>
</body>
</html>