forked from mirrors/bookwyrm
Remove dead code for old shelf pulldown.
This commit is contained in:
parent
97e752cc12
commit
0d1395d602
1 changed files with 0 additions and 18 deletions
|
@ -1,6 +1,5 @@
|
|||
{% load fr_display %}
|
||||
{% if request.user.is_authenticated %}
|
||||
{% if not pulldown %}
|
||||
|
||||
<div class="dropdown secondary">
|
||||
<form name="shelve" action="/shelve/" method="post">
|
||||
|
@ -20,21 +19,4 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{% else %}
|
||||
|
||||
<form name="shelve" action="/shelve/" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="book" value="{{ book.id }}"></input>
|
||||
|
||||
<select name="shelf">
|
||||
{% for shelf in request.user.shelf_set.all %}
|
||||
<option value="{{ shelf.identifier }}" {% if book in shelf.books.all %} selected {% endif %}>
|
||||
{{ shelf.name }}{% if book in shelf.books.all %} ✓ {% endif %}
|
||||
</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
<button class="secondary" type="submit">Shelve</button>
|
||||
</form>
|
||||
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue