2020-03-15 21:15:36 +00:00
|
|
|
{% load humanize %}
|
2021-02-28 02:48:10 +00:00
|
|
|
{% load i18n %}
|
2021-05-11 21:41:28 +00:00
|
|
|
{% load utilities %}
|
2020-03-15 21:15:36 +00:00
|
|
|
|
2021-04-03 20:06:36 +00:00
|
|
|
{% with status_type=request.GET.status_type %}
|
2021-02-28 18:04:04 +00:00
|
|
|
<div class="tab-group">
|
2021-02-27 15:47:03 +00:00
|
|
|
<div class="tabs is-boxed" role="tablist">
|
|
|
|
<ul>
|
2021-04-03 20:06:36 +00:00
|
|
|
<li class="{% if status_type == 'review' or not status_type %}is-active{% endif %}">
|
|
|
|
<a
|
|
|
|
href="{{ request.path }}?status_type=review&book={{ book.id }}"
|
2021-08-09 01:40:47 +00:00
|
|
|
id="tab_review_{{ book.id }}"
|
2021-04-03 20:06:36 +00:00
|
|
|
role="tab"
|
|
|
|
aria-selected="{% if status_type == 'review' or not status_type %}true{% else %}false{% endif %}"
|
2021-08-09 01:40:47 +00:00
|
|
|
aria-controls="review_{{ book.id }}"
|
2021-04-03 20:06:36 +00:00
|
|
|
data-category="tab-option-{{ book.id }}">
|
|
|
|
{% trans "Review" %}
|
|
|
|
</a>
|
2021-02-27 15:47:03 +00:00
|
|
|
</li>
|
2021-04-03 20:06:36 +00:00
|
|
|
<li class="{% if status_type == 'comment' %}is-active{% endif %}">
|
|
|
|
<a
|
|
|
|
href="{{ request.path }}?status_type=comment&book={{ book.id}}"
|
2021-08-09 01:40:47 +00:00
|
|
|
id="tab_comment_{{ book.id }}"
|
2021-04-03 20:06:36 +00:00
|
|
|
role="tab"
|
|
|
|
aria-selected="{% if status_type == 'comment' %}true{% else %}false{% endif %}"
|
2021-08-09 01:40:47 +00:00
|
|
|
aria-controls="comment_{{ book.id}}"
|
2021-04-03 20:06:36 +00:00
|
|
|
data-category="tab-option-{{ book.id }}">
|
|
|
|
{% trans "Comment" %}
|
|
|
|
</a>
|
2021-02-27 15:47:03 +00:00
|
|
|
</li>
|
2021-04-03 20:06:36 +00:00
|
|
|
<li class="{% if status_type == 'quote' %}is-active{% endif %}">
|
|
|
|
<a
|
|
|
|
href="{{ request.path }}?status_type=quote&book={{ book.id }}"
|
2021-08-09 01:40:47 +00:00
|
|
|
id="tab_quote_{{ book.id }}"
|
2021-04-03 20:06:36 +00:00
|
|
|
role="tab"
|
|
|
|
aria-selected="{% if status_type == 'quote' %}true{% else %}false{% endif %}"
|
2021-08-09 01:40:47 +00:00
|
|
|
aria-controls="quote_{{ book.id }}"
|
2021-04-03 20:06:36 +00:00
|
|
|
data-category="tab-option-{{ book.id }}">
|
|
|
|
{% trans "Quote" %}
|
|
|
|
</a>
|
2021-02-27 15:47:03 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2020-09-30 00:43:30 +00:00
|
|
|
|
2021-08-09 01:40:47 +00:00
|
|
|
<div class="tab-option-{{ book.id }}" id="review_{{ book.id }}" role="tabpanel" aria-labelledby="tab_review_{{ book.id }}" {% if status_type and status_type != "review" %}hidden{% endif %}>
|
2021-02-27 15:47:03 +00:00
|
|
|
{% with 0|uuid as uuid %}
|
2021-08-09 01:40:47 +00:00
|
|
|
{% include 'snippets/create_status/status.html' with type="review" %}
|
2021-02-27 15:47:03 +00:00
|
|
|
{% endwith %}
|
|
|
|
</div>
|
2020-03-21 23:50:49 +00:00
|
|
|
|
2021-08-09 01:40:47 +00:00
|
|
|
<div class="tab-option-{{ book.id }}" id="comment_{{ book.id }}" role="tabpanel" aria-labelledby="tab_comment_{{ book.id }}" {% if status_type != "comment" %}hidden{% endif %}>
|
2021-02-27 15:47:03 +00:00
|
|
|
{% with 0|uuid as uuid %}
|
2021-08-09 01:40:47 +00:00
|
|
|
{% include 'snippets/create_status/status.html' with type="comment" %}
|
2021-02-27 15:47:03 +00:00
|
|
|
{% endwith %}
|
|
|
|
</div>
|
2020-04-08 16:40:47 +00:00
|
|
|
|
2021-08-09 01:40:47 +00:00
|
|
|
<div class="tab-option-{{ book.id }}" id="quote_{{ book.id }}" role="tabpanel" aria-labelledby="tab_quote_{{ book.id }}" {% if status_type != "quote" %}hidden{% endif %}>
|
2021-02-27 15:47:03 +00:00
|
|
|
{% with 0|uuid as uuid %}
|
2021-08-09 01:40:47 +00:00
|
|
|
{% include 'snippets/create_status/status.html' with type="quotation" %}
|
2021-02-27 15:47:03 +00:00
|
|
|
{% endwith %}
|
|
|
|
</div>
|
2021-02-28 18:04:04 +00:00
|
|
|
</div>
|
2021-04-03 20:06:36 +00:00
|
|
|
{% endwith %}
|