separates css for star forms

This commit is contained in:
Mouse Reeve
2020-04-03 16:25:04 -07:00
parent 3aeeaa80e7
commit 560c5fd2f7
2 changed files with 23 additions and 10 deletions

View File

@ -0,0 +1,12 @@
{% load fr_display %}
<span class="hidden-text">Rating</span>
<div class="stars rate-stars">
<input type="radio" name="rating" value="" checked></input>
{% for i in '12345'|make_list %}
<input id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}"></input>
<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>