Spaces:
No application file
No application file
| {% extends "base.html" %} | |
| {% block content %} | |
| <h2>Issue Book</h2> | |
| <div class="card"> | |
| <form method="POST"> | |
| <label>Student ID:</label> | |
| <select name="student_id" required> | |
| {% for s in students %}<option value="{{ s.id }}">{{ s.id }} - {{ s.name }}</option>{% endfor %} | |
| </select> | |
| <label>Book ID:</label> | |
| <select name="book_id" required> | |
| {% for b in books %}<option value="{{ b.book_id }}">{{ b.book_id }} - {{ b.title }} ({{ b.available_copies }} available)</option>{% endfor %} | |
| </select> | |
| <button type="submit" class="btn">Issue Book</button> | |
| <a href="{{ url_for('dashboard') }}" class="btn btn-danger">Cancel</a> | |
| </form> | |
| </div> | |
| {% endblock %} | |