2020-04-03 23:25:04 +00:00
|
|
|
{% load fr_display %}
|
|
|
|
<span class="hidden-text">Rating</span>
|
2020-09-28 22:57:31 +00:00
|
|
|
<div class="field is-grouped stars rate-stars">
|
2020-04-21 17:47:55 +00:00
|
|
|
<input type="radio" name="rating" value="" checked>
|
2020-04-03 23:25:04 +00:00
|
|
|
{% for i in '12345'|make_list %}
|
2020-04-21 17:47:55 +00:00
|
|
|
<input id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
2020-04-03 23:25:04 +00:00
|
|
|
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
|
|
|
<span class="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
|
|
|
|
</label>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|