Oops I wasn't supposed to close input tags

This commit is contained in:
Mouse Reeve
2020-04-21 10:47:55 -07:00
parent 52651fdaa0
commit 894f76f843
10 changed files with 22 additions and 22 deletions

View File

@ -4,8 +4,8 @@
{% for i in '12345'|make_list %}
<form name="rate" action="/rate/" method="POST" onsubmit="return rate_stars(event)">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.fedireads_key }}"></input>
<input type="hidden" name="rating" value="{{ forloop.counter }}"></input>
<input type="hidden" name="book" value="{{ book.fedireads_key }}">
<input type="hidden" name="rating" value="{{ forloop.counter }}">
<button type="submit" class="icon icon-star-{% if book|rating:user < forloop.counter %}empty{% else %}full{% endif %}">
<span class="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
</button>