Merge reading status views into one view

This commit is contained in:
Mouse Reeve
2021-06-09 10:36:52 -07:00
parent 8d181a9848
commit 113ced2900
7 changed files with 60 additions and 95 deletions

View File

@ -7,7 +7,7 @@
{% block modal-form-open %}
<form name="finish-reading" action="{% url 'finish-reading' book.id %}" method="post">
<form name="finish-reading" action="{% url 'reading-status' 'finish' book.id %}" method="post">
{% endblock %}
{% block modal-body %}

View File

@ -8,7 +8,7 @@ Start "<em>{{ book_title }}</em>"
{% endblock %}
{% block modal-form-open %}
<form name="start-reading" action="{% url 'start-reading' book.id %}" method="post">
<form name="start-reading" action="{% url 'reading-status' 'start' book.id %}" method="post">
{% endblock %}
{% block modal-body %}

View File

@ -6,7 +6,7 @@
{% endblock %}
{% block modal-form-open %}
<form name="shelve" action="{% url 'to-read' book.id %}" method="post">
<form name="shelve" action="{% url 'reading-status' 'want' book.id %}" method="post">
{% csrf_token %}
<input type="hidden" name="book" value="{{ active_shelf.book.id }}">
<input type="hidden" name="shelf" value="to-read">