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