2020-03-15 21:15:36 +00:00
|
|
|
{% load humanize %}
|
|
|
|
{% load fr_display %}
|
|
|
|
|
|
|
|
<div class="tabs secondary">
|
2020-03-21 23:50:49 +00:00
|
|
|
<div class="tab active" data-id="tab-review-{{ book.id }}" data-category="tab-option-{{ book.id }}">
|
2020-05-04 01:07:06 +00:00
|
|
|
<a href="/book/{{ book.id }}/review" onclick="tabChange(event)">Review</a>
|
2020-03-15 21:15:36 +00:00
|
|
|
</div>
|
2020-03-21 23:50:49 +00:00
|
|
|
<div class="tab" data-id="tab-comment-{{ book.id }}" data-category="tab-option-{{ book.id }}">
|
2020-05-04 01:07:06 +00:00
|
|
|
<a href="/book/{{ book.id }}/comment" onclick="tabChange(event)">Comment</a>
|
2020-03-15 21:15:36 +00:00
|
|
|
</div>
|
2020-04-08 16:40:47 +00:00
|
|
|
<div class="tab" data-id="tab-quotation-{{ book.id }}" data-category="tab-option-{{ book.id }}">
|
2020-05-04 01:07:06 +00:00
|
|
|
<a href="/book/{{ book.id }}/quotation" onclick="tabChange(event)">Quote</a>
|
2020-03-15 21:15:36 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2020-04-03 16:45:44 +00:00
|
|
|
<div class="book-preview row">
|
2020-04-21 15:01:54 +00:00
|
|
|
{% if not hide_cover %}
|
2020-04-03 16:45:44 +00:00
|
|
|
<div class="cover-container">
|
|
|
|
{% include 'snippets/book_cover.html' with book=book %}
|
|
|
|
</div>
|
2020-04-21 15:01:54 +00:00
|
|
|
{% endif %}
|
2020-03-21 23:50:49 +00:00
|
|
|
<form class="tab-option-{{ book.id }} review-form" name="review" action="/review/" method="post" id="tab-review-{{ book.id }}">
|
2020-03-15 21:15:36 +00:00
|
|
|
{% csrf_token %}
|
2020-05-04 00:53:14 +00:00
|
|
|
<input type="hidden" name="book" value="{{ book.id }}">
|
2020-04-03 23:19:11 +00:00
|
|
|
{% include 'snippets/rate_form.html' with book=book %}
|
2020-03-15 21:15:36 +00:00
|
|
|
{{ review_form.as_p }}
|
2020-03-21 23:50:49 +00:00
|
|
|
<button type="submit">post review</button>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<form class="hidden tab-option-{{ book.id }} review-form" name="comment" action="/comment/" method="post" id="tab-comment-{{ book.id }}">
|
|
|
|
{% csrf_token %}
|
2020-05-04 00:53:14 +00:00
|
|
|
<input type="hidden" name="book" value="{{ book.id }}">
|
2020-03-21 23:50:49 +00:00
|
|
|
{{ comment_form.as_p }}
|
|
|
|
<button type="submit">post comment</button>
|
2020-03-15 21:15:36 +00:00
|
|
|
</form>
|
2020-04-08 16:40:47 +00:00
|
|
|
|
|
|
|
<form class="hidden tab-option-{{ book.id }} review-form quote-form" name="quotation" action="/quotate/" method="post" id="tab-quotation-{{ book.id }}">
|
|
|
|
{% csrf_token %}
|
2020-05-04 00:53:14 +00:00
|
|
|
<input type="hidden" name="book" value="{{ book.id }}">
|
2020-04-08 16:40:47 +00:00
|
|
|
{{ quotation_form.as_p }}
|
|
|
|
<button typr="submit">post quote</button>
|
|
|
|
</form>
|
2020-03-15 21:15:36 +00:00
|
|
|
</div>
|