forked from mirrors/bookwyrm
21 lines
1.2 KiB
HTML
21 lines
1.2 KiB
HTML
{% load i18n %}
|
|
{% load status_display %}
|
|
{% load utilities %}
|
|
{% comment %}
|
|
type: used to differentiate html id fields when multiple types of posting are available for a book (options: comment, quotation, review, direct, reply)
|
|
book: the Edition object related to the status
|
|
reply_parent: if applicable, the Status object that this post is in reply to
|
|
mention: a user who is @ mentioned by default in the post
|
|
draft: an existing Status object that is providing default values for input fields
|
|
{% endcomment %}
|
|
<div class="control">
|
|
<textarea
|
|
name="content"
|
|
class="textarea save-draft"
|
|
{% if not draft %}data-cache-draft="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}"{% endif %}
|
|
id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}{{ uuid }}"
|
|
placeholder="{{ placeholder }}"
|
|
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}"
|
|
{% if not optional and type != "quotation" and type != "review" %}required{% endif %}
|
|
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{{ prepared_content }}{% firstof draft.raw_content draft.content '' %}</textarea>
|
|
</div>
|