forked from mirrors/bookwyrm
Add prompt to respond to reporter
This commit is contained in:
parent
c04bf4638f
commit
24c1d5a168
3 changed files with 32 additions and 14 deletions
|
@ -17,6 +17,19 @@
|
||||||
{% include 'settings/reports/report_preview.html' with report=report %}
|
{% include 'settings/reports/report_preview.html' with report=report %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="block">
|
||||||
|
<details class="details-panel box">
|
||||||
|
<summary>
|
||||||
|
<span class="title is-4">{% trans "Message reporter" %}</span>
|
||||||
|
<span class="details-close icon icon-x" aria-hidden></span>
|
||||||
|
</summary>
|
||||||
|
<div class="box">
|
||||||
|
{% trans "Update on your report:" as dm_template %}
|
||||||
|
{% include 'snippets/create_status/status.html' with type="direct" uuid=1 mention=report.reporter prepared_content=dm_template no_script=True %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if report.statuses.exists %}
|
{% if report.statuses.exists %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h3 class="title is-4">{% trans "Reported statuses" %}</h3>
|
<h3 class="title is-4">{% trans "Reported statuses" %}</h3>
|
||||||
|
@ -68,9 +81,13 @@
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<form class="block" name="report-comment" method="post" action="{% url 'settings-report' report.id %}">
|
<form class="block" name="report-comment" method="post" action="{% url 'settings-report' report.id %}">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<label for="report_comment" class="label">Comment on report</label>
|
<div class="field">
|
||||||
<textarea name="note" id="report_comment" class="textarea"></textarea>
|
<label for="report_comment" class="label">Comment on report</label>
|
||||||
<button class="button">{% trans "Comment" %}</button>
|
<textarea name="note" id="report_comment" class="textarea"></textarea>
|
||||||
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<button class="button">{% trans "Comment" %}</button>
|
||||||
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -8,13 +8,14 @@ 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
|
mention: a user who is @ mentioned by default in the post
|
||||||
draft: an existing Status object that is providing default values for input fields
|
draft: an existing Status object that is providing default values for input fields
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
<textarea
|
<div class="control">
|
||||||
name="content"
|
<textarea
|
||||||
class="textarea save-draft"
|
name="content"
|
||||||
{% if not draft %}data-cache-draft="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}"{% endif %}
|
class="textarea save-draft"
|
||||||
id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}{{ uuid }}"
|
{% if not draft %}data-cache-draft="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}"{% endif %}
|
||||||
placeholder="{{ placeholder }}"
|
id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}{{ uuid }}"
|
||||||
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}"
|
placeholder="{{ placeholder }}"
|
||||||
{% if not optional and type != "quotation" and type != "review" %}required{% endif %}
|
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}"
|
||||||
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{% firstof draft.raw_content draft.content '' %}</textarea>
|
{% 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>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="column is-narrow">
|
<div class="column is-narrow control">
|
||||||
<button class="button is-link" type="submit">
|
<button class="button is-link" type="submit">
|
||||||
<span class="icon icon-spinner" aria-hidden="true"></span>
|
<span class="icon icon-spinner" aria-hidden="true"></span>
|
||||||
<span>{% trans "Post" %}</span>
|
<span>{% trans "Post" %}</span>
|
||||||
|
|
Loading…
Reference in a new issue