{% extends "base.html" %} {% block content %} {% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %} {% if context %}# | Book Title | Author | Total Quantity | Available Quantity | Action |
---|---|---|---|---|---|
{{ forloop.counter0|add:context.start_index }} | {{ book.title }} | {% for author in book.author.all %} {{ author }}{% if not forloop.last %}, {% endif %}{% endfor %} | {{ book.total_quantity }} | {{ book.quantity }} | {% if book.quantity > 0 %} Lend Book {% endif %} Add Copy |
No such record found!
{% endif %}