mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Expose "no rating" option in create review form
This commit is contained in:
parent
c3c59ce3d8
commit
b4d1a23ef6
1 changed files with 12 additions and 8 deletions
|
@ -13,15 +13,19 @@
|
||||||
|
|
||||||
{% if type == 'review' %}
|
{% if type == 'review' %}
|
||||||
<span class="is-sr-only">Rating</span>
|
<span class="is-sr-only">Rating</span>
|
||||||
<div class="field is-grouped stars form-rate-stars">
|
<fieldset>
|
||||||
<input class="hidden" type="radio" name="rating" value="" checked>
|
<div class="field is-grouped stars form-rate-stars">
|
||||||
{% for i in '12345'|make_list %}
|
<label class="is-sr-only">No rating
|
||||||
<input class="is-sr-only" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
<input class="is-sr-only" type="radio" name="rating" value="" checked>
|
||||||
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
|
||||||
<span class="is-sr-only">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
|
|
||||||
</label>
|
</label>
|
||||||
{% endfor %}
|
{% for i in '12345'|make_list %}
|
||||||
</div>
|
<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 }}">
|
||||||
|
<span class="is-sr-only">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
|
||||||
|
</label>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<textarea name="{% if type == 'quote' %}quote{% else %}content{% endif %}" class="textarea" id="id_quote_{{ book.id }}_{{ type }}" placeholder="{{ placeholder }}" required></textarea>
|
<textarea name="{% if type == 'quote' %}quote{% else %}content{% endif %}" class="textarea" id="id_quote_{{ book.id }}_{{ type }}" placeholder="{{ placeholder }}" required></textarea>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue