{% extends "base.html" %} {% block main_content %} {% if page_title is not defined %} {% set page_title="All Books" %} {%endif %} {% if not InDBox %}

{{page_title}}

{% set tab_id = 'book_table' %} {% else %} {% set tab_id = 'addsel_table' %} {% endif %} {% if not InDBox %} {% for h in ['Publisher','Condition','Owned','Covertype'] %} {% if h not in hide_cols %} {% endif %} {% endfor %} {% for h in ['Rating'] %} {% if h in show_cols %} {% endif %} {% endfor %} {% else %} {% endif %} {% for book in books %} {% if book.sub_book_num is defined %} {% else %} {% endif %} {% if not InDBox %} {% if 'Publisher' not in hide_cols %} {% endif %} {% if 'Condition' not in hide_cols %} {% set cond = GetConditionById(book.condition) %} {% if cond == "N/A" %} {% else %} {% endif %} {% endif %} {% if 'Owned' not in hide_cols %} {% endif %} {% endif %} {% if 'Covertype' not in hide_cols %} {% endif %} {% if InDBox %} {% endif %} {% if 'Rating' in show_cols %} {% endif %} {% endfor %}
TitleAuthor(s){{h}}{{h}}CovertypeAdd?
    {{book.title}}{{book.title}} {% for auth in book.bals %} {{auth.author.surname}}, {{auth.author.firstnames}} {% endfor %} {{ GetPublisherById(book.publisher)}}N/A {% if cond == "Good" %} {% elif cond == "Average" %} {% elif cond == "Needs Replacing" %} {% endif %} {{ GetOwnedById(book.owned)}}{{ GetCovertypeById(book.covertype) }}{{ GetRatingById(book.rating) }}
{% endblock main_content %}