moviewyrm/bookwyrm/templates/snippets/create_status.html

117 lines
6.6 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="columns">
2020-09-29 18:48:03 +00:00
<div class="column">
2020-09-30 00:43:30 +00:00
<div class="tabs is-boxed">
<ul>
<li class="is-active" data-id="tab-review-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="review-{{ book.id }}" onclick="tabChange(event)"><a>Review</a></label>
</li>
<li data-id="tab-comment-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="comment-{{ book.id}}" onclick="tabChange(event)"><a>Comment</a></label>
</li>
<li data-id="tab-quotation-{{ book.id }}" data-category="tab-option-{{ book.id }}">
<label for="quote-{{ book.id }}" onclick="tabChange(event)"><a>Quote</a></label>
</li>
</ul>
</div>
2020-09-29 18:48:03 +00:00
<div>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="review-{{ book.id }}" checked>
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="review" action="/review/" method="post" id="tab-review-{{ book.id }}">
{% csrf_token %}
2020-09-30 22:24:44 +00:00
<input type="hidden" name="book" value="{{ book.id }}">
2020-10-27 18:32:15 +00:00
<input type="hidden" name="user" value="{{ request.user.id }}">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_name_{{ book.id }}_review">Title:</label>
<input type="text" name="name" maxlength="255" class="input" required="" id="id_name_{{ book.id }}_review" placeholder="My review of '{{ book.title }}'">
2020-09-29 18:48:03 +00:00
</div>
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_review">Review:</label>
2020-09-30 02:19:37 +00:00
2020-09-30 22:10:37 +00:00
<span class="is-sr-only">Rating</span>
2020-09-30 02:19:37 +00:00
<div class="field is-grouped stars form-rate-stars">
<input class="hidden" type="radio" name="rating" value="" checked>
{% for i in '12345'|make_list %}
<input class="hidden" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
2020-09-30 22:10:37 +00:00
<span class="is-sr-only">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
2020-09-30 02:19:37 +00:00
</label>
{% endfor %}
</div>
2020-09-30 02:14:22 +00:00
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_review"></textarea>
2020-09-29 18:48:03 +00:00
</div>
2020-10-27 22:16:17 +00:00
<div class="control is-grouped">
<div class="select">
<select name="privacy">
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>
<option value="followers">Followers only</option>
<option value="direct">Private</option>
</select>
</div>
<button class="button is-primary" type="submit">post review</button>
</div>
2020-09-29 18:48:03 +00:00
</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>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="comment-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="comment" action="/comment/" method="post" id="tab-comment-{{ book.id }}">
{% csrf_token %}
2020-09-30 22:24:44 +00:00
<input type="hidden" name="book" value="{{ book.id }}">
2020-10-27 18:32:15 +00:00
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="user" value="{{ request.user.id }}">
<input type="hidden" name="privacy" value="public">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_comment">Comment:</label>
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_comment" placeholder="Some thoughts on '{{ book.title }}'"></textarea>
2020-09-29 18:48:03 +00:00
</div>
2020-10-27 22:16:17 +00:00
<div class="control is-grouped">
<div class="select">
<select name="privacy">
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>
<option value="followers">Followers only</option>
<option value="direct">Private</option>
</select>
</div>
<button class="button is-primary" type="submit">post comment</button>
</div>
2020-09-29 18:48:03 +00:00
</form>
</div>
2020-04-08 16:40:47 +00:00
2020-09-29 18:48:03 +00:00
<div>
2020-09-30 00:43:30 +00:00
<input class="toggle-control" type="radio" name="status-tabs-{{ book.id }}" id="quote-{{ book.id }}">
2020-09-29 18:48:03 +00:00
<form class="toggle-content hidden tab-option-{{ book.id }}" name="quotation" action="/quotate/" method="post" id="tab-quotation-{{ book.id }}">
{% csrf_token %}
2020-09-30 22:24:44 +00:00
<input type="hidden" name="book" value="{{ book.id }}">
2020-10-27 18:32:15 +00:00
<input type="hidden" name="book" value="{{ book.id }}">
<input type="hidden" name="user" value="{{ request.user.id }}">
<input type="hidden" name="privacy" value="public">
2020-09-29 18:48:03 +00:00
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_quote_{{ book.id }}_quote">Quote:</label>
<textarea name="quote" class="textarea" required="" id="id_quote_{{ book.id }}_quote" placeholder="An except from '{{ book.title }}'"></textarea>
2020-09-29 18:48:03 +00:00
</div>
<div class="control">
2020-09-30 02:14:22 +00:00
<label class="label" for="id_content_{{ book.id }}_quote">Comment:</label>
<textarea name="content" class="textarea is-small" id="id_content_{{ book.id }}_quote"></textarea>
2020-09-29 18:48:03 +00:00
</div>
2020-10-27 22:16:17 +00:00
<div class="control is-grouped">
<div class="select">
<select name="privacy">
<option value="public" selected>Public</option>
<option value="unlisted">Unlisted</option>
<option value="followers">Followers only</option>
<option value="direct">Private</option>
</select>
</div>
<button class="button is-primary" type="submit">post quote</button>
</div>
2020-09-29 18:48:03 +00:00
</form>
</div>
</div>
2020-03-15 21:15:36 +00:00
</div>