1
0
Fork 0

Adds model and beginning of boilerplate for tags

This commit is contained in:
Mouse Reeve 2020-02-20 18:01:50 -08:00
parent 9c645c6ab6
commit 13b512b569
8 changed files with 57 additions and 3 deletions

View file

@ -12,6 +12,12 @@
{% if not reviews %}
<p>No reviews yet!</p>
{% endif %}
<form class="tag-form" name="tag" action="/tag/" method="post">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.openlibrary_key }}"></input>
{{ tag_form.as_p }}
<button type="submit">Add tag</button>
</form>
<form class="review-form" name="review" action="/review/" method="post">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.openlibrary_key }}"></input>