{% extends 'base.html' %}

{% load i18n %}
{% load choose_cites from social_tags %}


{% block breadcrumbs %}
  <a href="/ludzie/polka/"><span>{% trans "Półka" %}</span></a>
{% endblock %}

{% block main %}
  <div class="l-section">
    <div class="l-author__header">
      <h1>{{ tags.0.name }}</h1>
    </div>
  </div>

  <div class="l-section">
    <div class="l-books__header">
      <div class="l-books__input">
        <i class="icon icon-filter"></i>
        <input type="text" placeholder="filtry, tytuł" class="quick-filter" data-for="book-list">
      </div>
      <div class="l-books__sorting">
        <span>{% trans "Sortuj:" %}</span>
        <div>
          <button data-order="data-pop">{% trans "najpopularniejsze" %}</button>
          <button class="is-active">{% trans "alfabetycznie" %}</button>
          <!--button>chronologicznie</button-->
        </div>
      </div>
    </div>
  </div>

  <div class="l-section l-section--col">
    <div class="l-books__grid" id="book-list">
      {% for book in object_list %}
        {% include "catalogue/book_box.html" %}
      {% endfor %}
    </div>
  </div>
{% endblock %}
