moviewyrm/bookwyrm/templates/snippets/reply_form.html

29 lines
1.2 KiB
HTML
Raw Normal View History

2020-12-13 02:25:04 +00:00
{% load bookwyrm_tags %}
2020-12-31 01:36:35 +00:00
{% with status.id|uuid as uuid %}
<form class="is-flex-grow-1" name="reply" action="/reply" method="post" onsubmit="return reply(event)">
<div class="columns">
{% csrf_token %}
2020-12-31 01:36:35 +00:00
<input type="hidden" name="reply_parent" value="{{ status.id }}">
<input type="hidden" name="user" value="{{ request.user.id }}">
<div class="column">
2020-12-17 19:05:37 +00:00
2020-12-31 01:36:35 +00:00
{% include 'snippets/content_warning_field.html' with parent_status=status %}
2020-12-31 01:38:38 +00:00
<label for="id_content_{{ status.id }}-{{ uuid }}" class="is-sr-only">Reply</label>
<div class="field">
2020-12-31 01:36:35 +00:00
<textarea class="textarea" name="content" placeholder="Leave a comment..." id="id_content_{{ status.id }}-{{ uuid }}" required="true">{{ status|mentions:request.user }}</textarea>
</div>
</div>
<div class="column is-narrow">
<div class="field">
2020-12-31 01:36:35 +00:00
{% include 'snippets/privacy_select.html' with current=status.privacy %}
</div>
<div class="field">
<button class="button is-primary" type="submit">
post reply
</button>
</div>
</div>
</div>
</form>
{% endwith %}