{% extends "layout-1-col.html" %} {% block content %} Выбор обложки для книг, страница {{ pages.current }} {% for b in books %}
{% if b.authors_string %}{{ b.authors_string }}: {% endif %}{{ b.title }}
{% for i in b.variantbookinfo_set.all %}
{% if b.current_vbi == i %}{% endif %}
{% if forloop.counter == 5 and b.variantbookinfo_set.count > 6 %}
{% endif %} {% endfor %}
{% endfor %} {% endblock %}