moviewyrm/bookwyrm/templates/snippets/create_status.html

54 lines
2.2 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 }}">
<a href="/book/{{ book.id }}/review" onclick="tabChange(event)">Review</a>
</li>
<li data-id="tab-comment-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<a href="/book/{{ book.id }}/comment" onclick="tabChange(event)">Comment</a>
</li>
<li data-id="tab-quotation-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<a href="/book/{{ book.id }}/quotation" onclick="tabChange(event)">Quote</a>
</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
<form class="tab-option-{{ book.id }} column" 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-09-29 18:00:54 +00:00
<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>
2020-03-21 23:50:49 +00:00
</form>
2020-09-29 18:00:54 +00:00
<form class="hidden tab-option-{{ book.id }} column" name="comment" action="/comment/" method="post" id="tab-comment-{{ book.id }}">
2020-03-21 23:50:49 +00:00
{% 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 }}
2020-09-29 18:00:54 +00:00
<button class="button is-primary" type="submit">post comment</button>
2020-03-15 21:15:36 +00:00
</form>
2020-04-08 16:40:47 +00:00
2020-09-29 18:00:54 +00:00
<form class="hidden tab-option-{{ book.id }} column" name="quotation" action="/quotate/" method="post" id="tab-quotation-{{ book.id }}">
2020-04-08 16:40:47 +00:00
{% 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 }}
2020-09-29 18:00:54 +00:00
<button class="button is-primary" type="submit">post quote</button>
2020-04-08 16:40:47 +00:00
</form>
2020-03-15 21:15:36 +00:00
</div>