X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/05062d251dfe096e5e54aba912d5744d2695d164..e180078f82a3d7e73857a9544b3b7fdfd475f93f:/templates/catalogue/book_sets.html diff --git a/templates/catalogue/book_sets.html b/templates/catalogue/book_sets.html index 1b87c12af..1ae34c3cd 100644 --- a/templates/catalogue/book_sets.html +++ b/templates/catalogue/book_sets.html @@ -1,15 +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> +{% if not user.tag_set.count %} + <p>Nie posiadasz żadnych zestawów. JeÅli chcesz, możesz utworzyÄ nowy zestaw 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 zestawy"/></li> + </ol> + </form> {% endif %} <hr /> <form action="{% url catalogue.views.new_set %}" method="POST" accept-charset="utf-8" class="cuteform"> <ol> - <li>{{ new_set_form.name }} <input type="submit" value="Dodaj zestaw"/></li> + <li>{{ new_set_form.name }} <input type="submit" value="Nowy zestaw"/></li> </ol> </form> \ No newline at end of file