forked from mirrors/bookwyrm
Removes extra "content" field in status editor that broke dms
This commit is contained in:
parent
12b10fbd42
commit
ad8666ebec
2 changed files with 16 additions and 6 deletions
|
@ -14,7 +14,7 @@
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<div class="box">
|
<div class="box">
|
||||||
{% include 'snippets/create_status_form.html' with type="direct" uuid=1 mentions=partner %}
|
{% include 'snippets/create_status_form.html' with type="direct" uuid=1 mention=partner %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<section class="block">
|
<section class="block">
|
||||||
|
|
|
@ -36,13 +36,23 @@
|
||||||
|
|
||||||
<div class="control">
|
<div class="control">
|
||||||
{% if type == 'quotation' %}
|
{% if type == 'quotation' %}
|
||||||
<textarea name="quote" class="textarea" id="id_quote_{{ book.id }}_{{ type }}" placeholder="{{ placeholder }}" required>{{ draft.quote|default:'' }}</textarea>
|
<textarea
|
||||||
{% elif type == 'reply' %}
|
name="quote"
|
||||||
{% include 'snippets/content_warning_field.html' with parent_status=status %}
|
class="textarea"
|
||||||
<textarea name="content" class="textarea" id="id_content_{{ type }}-{{ book.id }}{{reply_parent.id}}" placeholder="{{ placeholder }}" aria-label="{% trans 'Reply' %}" required>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mentions %}@{{ mentions|username }} {% endif %}{{ draft.content|default:'' }}</textarea>
|
id="id_quote_{{ book.id }}_{{ type }}"
|
||||||
|
placeholder="{{ placeholder }}"
|
||||||
|
required
|
||||||
|
>{{ draft.quote|default:'' }}</textarea>
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include 'snippets/content_warning_field.html' with parent_status=status %}
|
{% include 'snippets/content_warning_field.html' with parent_status=status %}
|
||||||
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_{{ type }}" placeholder="{{ placeholder }}" required>{{ draft.content|default:'' }}</textarea>
|
<textarea
|
||||||
|
name="content"
|
||||||
|
class="textarea"
|
||||||
|
id="id_content_{{ type }}-{{ book.id }}{{reply_parent.id}}"
|
||||||
|
placeholder="{{ placeholder }}"
|
||||||
|
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans "Content" %}{% endif %}"
|
||||||
|
required
|
||||||
|
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{{ draft.content|default:'' }}</textarea>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue