<!DOCTYPE html>
<html>

<head>
    <title>Create User</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<!-- 
<body>
    <div class="container mt-4">
        <h1>Create New User</h1>
        <form action="/users" method="POST">
            <div class="mb-3">
                <label class="form-label">Name</label>
                <input type="text" name="name" class="form-control" required>
            </div>
            <div class="mb-3">
                <label class="form-label">Email</label>
                <input type="email" name="email" class="form-control" required>
            </div>
            <button type="submit" class="btn btn-primary">Create</button>
            <a href="/users" class="btn btn-secondary">Cancel</a>
        </form>
    </div>
</body> -->

<body>
    <div class="container mt-4">
        <h1>Create New User</h1>
        <form action="/users" method="POST">
            <div class="mb-3">
                <label class="form-label">Name</label>
                <input type="text" name="name" class="form-control" required>
            </div>

            <div class="mb-3">
                <label class="form-label">Email</label>
                <input type="email" name="email" class="form-control" required>
            </div>

            <div class="mb-3">
                <label class="form-label">Age</label>
                <select name="age" class="form-select" required>
                    <option value="">Select Age</option>
                    <% for(let i=5; i <=18; i++) { %>
                        <option value="<%= i %>">
                            <%= i %>
                        </option>
                        <% } %>
                </select>
            </div>

            <div class="mb-3">
                <label class="form-label">Class</label>
                <select name="class" class="form-select" required>
                    <option value="">Select Class</option>
                    <% for(let i=1; i <=12; i++) { %>
                        <option value="<%= i %>">
                            <%= i %>
                        </option>
                        <% } %>
                </select>
            </div>

            <div class="mb-3">
                <label class="form-label">Section</label>
                <select name="section" class="form-select" required>
                    <option value="">Select Section</option>
                    <option value="A">A</option>
                    <option value="B">B</option>
                    <option value="C">C</option>
                    <option value="D">D</option>
                </select>
            </div>

            <button type="submit" class="btn btn-primary">Create</button>
            <a href="/users" class="btn btn-secondary">Cancel</a>
        </form>
    </div>
</body>


</html>