Moved catalogue, chunks, compress, newtagging and pagination applications to apps...
[wolnelektury.git] / templates / catalogue / book_sets.html
index 7e7b3d3..c739418 100644 (file)
@@ -1,13 +1,17 @@
-{% if book %}
-<h2>Zestawy zawierające utwór {{ book.title }}</h2>
-<form action="{% url catalogue.views.book_sets book.slug %}" method="POST" accept-charset="utf-8" class="cuteform">
-<ol>
-    <li>{{ form.set_ids }}</li>
-    <li><input type="submit" value="Zapisz zestawy"/></li>
-</ol>
-</form>
+<h2>Półki zawierające utwór {{ book.title }}</h2>
+{% if not user.tag_set.count %}
+    <p>Nie posiadasz żadnych półek. Jeśli chcesz, możesz utworzyć nową półkę poniżej.</p>
+{% else %}
+    <form action="{% url catalogue.views.book_sets book.slug %}" method="POST" accept-charset="utf-8" class="cuteform">
+    <ol>
+        <li>{{ form.set_ids }}</li>
+        <li><input type="submit" value="Zapisz półki"/></li>
+    </ol>
+    </form>
 {% endif %}
 <hr />
 <form action="{% url catalogue.views.new_set %}" method="POST" accept-charset="utf-8" class="cuteform">
-    <p>{{ new_set_form.name }} <input type="submit" value="Dodaj zestaw"/></p>
+<ol>
+    <li>{{ new_set_form.name }} <input type="submit" value="Utwórz nową półkę"/></li>
+</ol>
 </form>
\ No newline at end of file