{% extends "base.html" %} {% block main_content %} {% if page_title is not defined %} {% set page_title="All Books" %} {%endif %} {% if not InDBox %}
| Title | Author(s) | {% if not InDBox %} {% for h in ['Publisher','Condition','Owned','Covertype'] %} {% if h not in hide_cols %}{{h}} | {% endif %} {% endfor %} {% for h in ['Rating'] %} {% if h in show_cols %}{{h}} | {% endif %} {% endfor %} {% else %}Covertype | Add? | {% endif %}||||
|---|---|---|---|---|---|---|---|---|---|
| {{book.title}} | {% else %}{{book.title}} | {% endif %}{% for auth in book.bals %} {{auth.author.surname}}, {{auth.author.firstnames}} {% endfor %} | {% if not InDBox %} {% if 'Publisher' not in hide_cols %}{{ GetPublisherById(book.publisher)}} | {% endif %} {% if 'Condition' not in hide_cols %} {% set cond = GetConditionById(book.condition) %} {% if cond == "N/A" %}N/A | {% else %}{% if cond == "Good" %} {% elif cond == "Average" %} {% elif cond == "Needs Replacing" %} {% endif %} | {% endif %} {% endif %} {% if 'Owned' not in hide_cols %}{{ GetOwnedById(book.owned)}} | {% endif %} {% endif %} {% if 'Covertype' not in hide_cols %}{{ GetCovertypeById(book.covertype) }} | {% endif %} {% if InDBox %}{% endif %} {% if 'Rating' in show_cols %} | {{ GetRatingById(book.rating) }} | {% endif %}