sponsor alt
[wolnelektury.git] / src / catalogue / templates / catalogue / collection.html
old mode 100755 (executable)
new mode 100644 (file)
index 4bb12c9..1f38cec
@@ -1,10 +1,50 @@
-{% extends "catalogue/book_list.html" %}
+{% extends 'base.html' %}
 {% load i18n %}
 
-{% block titleextra %}{{ context.collection.title }}{% endblock %}
+{% block breadcrumbs %}
+  <a href="/katalog/"><span>{% trans "Katalog" %}</span></a>
+  <a href="/katalog/kolekcje/"><span>{% trans "Kolekcje" %}</span></a>
+{% endblock %}
+
+
+{% block main %}
+
+  <div class="l-section">
+    <div class="l-author__header">
+      <h1>{{ collection.title }}</h1>
+    </div>
+  </div>
+
+  <div class="l-author__info">
+    <p>
+      {{ collection.description|safe }}
+    </p>
+  </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="{% trans 'filtry, tytuł' %}" class="quick-filter" data-for="book-list">
+      </div>
+      <div class="l-books__sorting">
+        <span>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 collection.get_books %}
+        {% include "catalogue/book_box.html" %}
+      {% endfor %}
+    </div>
+  </div>
 
-{% block book_list_header %}{{ context.collection.title }}{% endblock %}
 
-{% block book_list_info %}
-{{ context.collection.description|safe }}
 {% endblock %}