From 70cd706ce3c42e73873ca4e1293b7ee0fb272dea Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 7 Nov 2020 11:49:57 -0800 Subject: [PATCH] Pulldown for moving books between or off shelves --- bookwyrm/templates/snippets/shelf.html | 11 +------ .../templates/snippets/shelf_selector.html | 31 +++++++++++++++++++ 2 files changed, 32 insertions(+), 10 deletions(-) create mode 100644 bookwyrm/templates/snippets/shelf_selector.html diff --git a/bookwyrm/templates/snippets/shelf.html b/bookwyrm/templates/snippets/shelf.html index a9238a45..8629ed1a 100644 --- a/bookwyrm/templates/snippets/shelf.html +++ b/bookwyrm/templates/snippets/shelf.html @@ -67,16 +67,7 @@ {% endif %} -
- {% csrf_token %} - - - -
+ {% include 'snippets/shelf_selector.html' with current=shelf %} {% endfor %} diff --git a/bookwyrm/templates/snippets/shelf_selector.html b/bookwyrm/templates/snippets/shelf_selector.html new file mode 100644 index 00000000..7f93762a --- /dev/null +++ b/bookwyrm/templates/snippets/shelf_selector.html @@ -0,0 +1,31 @@ +