{% extends "base.html" %} {% block content %}
Search key
{% csrf_token %}
{% if context %}
Books match:
{% for book in context %} {% endfor %}
# Book Title Author 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.quantity }} {% if book.status == 'l' %} {% elif book.id in book_ids %} {% else %} {% endif %}
{% else %}

No such record found!

{% endif %}
{% if context.has_other_pages %} {% endif %} {% endblock %}