Merge branch 'production' into pretty
[wolnelektury.git] / wolnelektury / templates / catalogue / user_shelves.html
1 {% load i18n %}
2 <h2>{% trans "Your shelves with books" %}</h2>
3 {% if shelves %}
4 <ul class="shelf-list">
5 {% for shelf in shelves %}
6     <li><a href="{% url delete_shelf shelf.slug %}" class="delete-shelf">{% trans "remove" %}</a> <a href="{{ shelf.get_absolute_url }}" class="visit-shelf">{{ shelf.name }} ({{ shelf.book_count }})</a></li>
7 {% endfor %}
8 </ul>
9 {% else %}
10 <p>{% trans "You do not own any shelves. You can create one below if you want to" %}.</p>
11 {% endif %}
12 <hr />
13 <form action="{% url catalogue.views.new_set %}" method="post" accept-charset="utf-8" class="cuteform">
14 <ol>
15     <li>{{ new_set_form.name }} <input type="submit" value="{% trans "Create shelf" %}"/></li>
16 </ol>
17 </form>