moviewyrm/bookwyrm/templates/snippets/create_status.html

80 lines
4.6 KiB
HTML
Raw Normal View History

2020-03-15 21:15:36 +00:00
{% load humanize %}
{% load fr_display %}
2020-09-29 18:00:54 +00:00
<div class="columns">
2020-09-29 18:48:03 +00:00
<div class="column">
2020-09-30 00:43:30 +00:00
<div class="tabs is-boxed">
<ul>
<li class="is-active" data-id="tab-review-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="review-{{ book.id }}" onclick="tabChange(event)"><a>Review</a></label>
</li>
<li data-id="tab-comment-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="comment-{{ book.id}}" onclick="tabChange(event)"><a>Comment</a></label>
</li>
<li data-id="tab-quotation-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="quote-{{ book.id }}" onclick="tabChange(event)"><a>Quote</a></label>
</li>
</ul>
</div>
2020-09-29 18:48:03 +00:00
<div>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="review-{{ book.id }}" checked>
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="review" action="/review/" method="post" id="tab-review-{{ book.id }}">
{% csrf_token %}
2020-09-30 00:43:30 +00:00
<input type="hidden" name="book-{{ book.id }}" value="{{ book.id }}">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_name_{{ book.id }}_review">Title:</label>
<input type="text" name="name" maxlength="255" class="input" required="" id="id_name_{{ book.id }}_review" placeholder="My review of '{{ book.title }}'">
2020-09-29 18:48:03 +00:00
</div>
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_review">Review:</label>
2020-09-30 02:19:37 +00:00
<span class="hidden-text">Rating</span>
<div class="field is-grouped stars form-rate-stars">
<input class="hidden" type="radio" name="rating" value="" checked>
{% for i in '12345'|make_list %}
<input class="hidden" 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="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
</label>
{% endfor %}
</div>
2020-09-30 02:14:22 +00:00
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_review"></textarea>
2020-09-29 18:48:03 +00:00
</div>
<button class="button is-primary" type="submit">post review</button>
</form>
2020-09-29 18:00:54 +00:00
</div>
2020-03-21 23:50:49 +00:00
2020-09-29 18:48:03 +00:00
<div>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="comment-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="comment" action="/comment/" method="post" id="tab-comment-{{ book.id }}">
{% csrf_token %}
2020-09-30 00:43:30 +00:00
<input type="hidden" name="book-{{ book.id }}" value="{{ book.id }}">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_comment">Comment:</label>
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_comment" placeholder="Some thoughts on '{{ book.title }}'"></textarea>
2020-09-29 18:48:03 +00:00
</div>
<button class="button is-primary" type="submit">post comment</button>
</form>
</div>
2020-04-08 16:40:47 +00:00
2020-09-29 18:48:03 +00:00
<div>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="quote-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="quotation" action="/quotate/" method="post" id="tab-quotation-{{ book.id }}">
{% csrf_token %}
2020-09-30 00:43:30 +00:00
<input type="hidden" name="book-{{ book.id }}" value="{{ book.id }}">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_quote_{{ book.id }}_quote">Quote:</label>
<textarea name="quote" class="textarea" required="" id="id_quote_{{ book.id }}_quote" placeholder="An except from '{{ book.title }}'"></textarea>
2020-09-29 18:48:03 +00:00
</div>
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_quote">Comment:</label>
<textarea name="content" class="textarea is-small" id="id_content_{{ book.id }}_quote"></textarea>
2020-09-29 18:48:03 +00:00
</div>
<button class="button is-primary" type="submit">post quote</button>
</form>
</div>
</div>
2020-03-15 21:15:36 +00:00
</div>