Spaces:
No application file
No application file
| {% extends "base.html" %} | |
| {% block content %} | |
| <h2>Add Book</h2> | |
| <div class="card"> | |
| <form method="POST"> | |
| <label>Book ID:</label><input name="book_id" required> | |
| <label>Title:</label><input name="title" required> | |
| <label>Author:</label><input name="author" required> | |
| <label>ISBN:</label><input name="isbn" required> | |
| <label>Category:</label><input name="category" required> | |
| <label>Publisher:</label><input name="publisher" required> | |
| <label>Year:</label><input type="number" name="year" required> | |
| <label>Total Copies:</label><input type="number" name="total_copies" required> | |
| <label>Shelf No:</label><input name="shelf_no" required> | |
| <label>Cover Image URL (optional):</label><input name="cover_image"> | |
| <button type="submit" class="btn">Add Book</button> | |
| <a href="{{ url_for('books') }}" class="btn btn-danger">Cancel</a> | |
| </form> | |
| </div> | |
| {% endblock %} | |