Spaces:
No application file
No application file
| {% extends "base.html" %} | |
| {% block content %} | |
| <h2>Add User</h2> | |
| <div class="card"> | |
| <form method="POST"> | |
| <label>User ID:</label><input name="student_id" required> | |
| <label>Name:</label><input name="name" required> | |
| <label>Email:</label><input type="email" name="email" required> | |
| <label>Role:</label> | |
| <select name="role" required style="padding: 0.5rem; border: 1px solid #d1d5db; border-radius: 4px; width: 100%; margin-bottom: 1rem;"> | |
| <option value="student">Student</option> | |
| <option value="librarian">Librarian</option> | |
| <option value="admin">Admin</option> | |
| </select> | |
| <label>Department:</label><input name="department"> | |
| <label>Contact:</label><input name="contact"> | |
| <label>Password (default: student123):</label><input type="password" name="password"> | |
| <button type="submit" class="btn">Add User</button> | |
| <a href="{{ url_for('students') }}" class="btn btn-danger">Cancel</a> | |
| </form> | |
| </div> | |
| {% endblock %} | |