moviewyrm/bookwyrm/templates/snippets/create_status.html

75 lines
3.3 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="tabs is-boxed">
<ul>
<li class="is-active" data-id="tab-review-{{ book.id }}" data-category="tab-option-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<label for="review-{{ book.id }}" onclick="tabChange(event)"><a>Review</a></label>
2020-09-29 18:00:54 +00:00
</li>
<li data-id="tab-comment-{{ book.id }}" data-category="tab-option-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<label for="comment-{{ book.id}}" onclick="tabChange(event)"><a>Comment</a></label>
2020-09-29 18:00:54 +00:00
</li>
<li data-id="tab-quotation-{{ book.id }}" data-category="tab-option-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<label for="quote-{{ book.id }}" onclick="tabChange(event)"><a>Quote</a></label>
2020-09-29 18:00:54 +00:00
</li>
</ul>
2020-03-15 21:15:36 +00:00
</div>
2020-09-29 18:00:54 +00:00
<div class="columns">
{% if not hide_cover %}
2020-09-29 18:00:54 +00:00
<div class="column is-narrow">
2020-04-03 16:45:44 +00:00
{% include 'snippets/book_cover.html' with book=book %}
</div>
{% endif %}
2020-09-29 18:00:54 +00:00
2020-09-29 18:48:03 +00:00
<div class="column">
<div>
<input class="toggle-control" type="radio" name="status-tabs" id="review-{{ book.id }}" checked>
<form class="toggle-content hidden tab-option-{{ book.id }}" name="review" action="/review/" method="post" id="tab-review-{{ book.id }}">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<div class="control">
<label class="label" for="id_name">Title:</label>
{{ review_form.name }}
</div>
<div class="control">
<label class="label" for="id_content">Review:</label>
{% include 'snippets/rate_form.html' with book=book %}
{{ review_form.content }}
</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>
<input class="toggle-control" type="radio" name="status-tabs" id="comment-{{ book.id }}">
<form class="toggle-content hidden tab-option-{{ book.id }}" name="comment" action="/comment/" method="post" id="tab-comment-{{ book.id }}">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<div class="control">
<label class="label" for="id_content">Comment:</label>
{{ comment_form.content }}
</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>
<input class="toggle-control" type="radio" name="status-tabs" id="quote-{{ book.id }}">
<form class="toggle-content hidden tab-option-{{ book.id }}" name="quotation" action="/quotate/" method="post" id="tab-quotation-{{ book.id }}">
{% csrf_token %}
<input type="hidden" name="book" value="{{ book.id }}">
<div class="control">
<label class="label" for="id_quote">Quote:</label>
{{ quotation_form.quote }}
</div>
<div class="control">
<label class="label" for="id_content">Comment:</label>
{{ quotation_form.content }}
</div>
<button class="button is-primary" type="submit">post quote</button>
</form>
</div>
</div>
2020-03-15 21:15:36 +00:00
</div>