X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/1cfa04c50e48ee081f8ae02d9a54849b08fddd38..78f64bd3e21f1a5610b50bc3235ad4c85dfe11c9:/templates/catalogue/book_sets.html diff --git a/templates/catalogue/book_sets.html b/templates/catalogue/book_sets.html index 7e7b3d36e..c7394186a 100644 --- a/templates/catalogue/book_sets.html +++ b/templates/catalogue/book_sets.html @@ -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