bookwyrm/fedireads/templates/snippets/create_status.html

42 lines
1.7 KiB
HTML
Raw Normal View History

2020-03-15 21:15:36 +00:00
{% load humanize %}
{% load fr_display %}
<h2>
{% include 'snippets/avatar.html' with user=user %}
Your thoughts on
2020-04-03 23:19:11 +00:00
a <a href="/book/{{ book.fedireads_key }}">{{ book.title }}</a>
2020-03-15 21:15:36 +00:00
by {% include 'snippets/authors.html' with book=book %}
</h2>
<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 }}">
<a href="{{ book.absolute_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 }}">
<a href="{{ book.absolute_id }}/comment" onclick="tabChange(event)">Comment</a>
2020-03-15 21:15:36 +00:00
</div>
2020-03-21 23:50:49 +00:00
<div class="tab" data-id="tab-quote-{{ book.id }}" data-category="tab-option-{{ book.id }}">
2020-03-15 21:15:36 +00:00
Quote
</div>
</div>
2020-04-03 16:45:44 +00:00
<div class="book-preview row">
<div class="cover-container">
{% include 'snippets/book_cover.html' with book=book %}
</div>
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 %}
<input type="hidden" name="book" value="{{ book.fedireads_key }}"></input>
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 %}
<input type="hidden" name="book" value="{{ book.fedireads_key }}"></input>
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>
</div>