File size: 845 Bytes
58668c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{% 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 %}