star rating label can't surround input for css to work
This commit is contained in:
parent
c4bf2653f7
commit
a0243d089c
|
@ -15,9 +15,8 @@
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<legend class="is-sr-only">Rating</legend>
|
<legend class="is-sr-only">Rating</legend>
|
||||||
<div class="field is-grouped stars form-rate-stars">
|
<div class="field is-grouped stars form-rate-stars">
|
||||||
<label class="is-sr-only">No rating
|
<label class="is-sr-only" for="no-rating-{{ book.id }}">No rating</label>
|
||||||
<input class="is-sr-only" type="radio" name="rating" value="" checked>
|
<input class="is-sr-only" type="radio" name="rating" value="" id="no-rating-{{ book.id }}" checked>
|
||||||
</label>
|
|
||||||
{% for i in '12345'|make_list %}
|
{% for i in '12345'|make_list %}
|
||||||
<input class="is-sr-only" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
<input class="is-sr-only" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
||||||
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
||||||
|
|
Loading…
Reference in New Issue