forked from mirrors/bookwyrm
Merge pull request #1425 from bookwyrm-social/delete-and-redraft
Fixes form submission from compose view
This commit is contained in:
commit
7901da3b74
2 changed files with 8 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
{% if not draft %}
|
{% if not draft %}
|
||||||
{% include 'snippets/create_status.html' %}
|
{% include 'snippets/create_status.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include 'snippets/create_status/status.html' %}
|
{% include 'snippets/create_status/status.html' with no_script=True %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -14,7 +14,13 @@ reply_parent: the Status object this post will be in reply to, if applicable
|
||||||
|
|
||||||
{% block form_open %}
|
{% block form_open %}
|
||||||
{# default form tag syntax, can be overriddden #}
|
{# default form tag syntax, can be overriddden #}
|
||||||
<form class="is-flex-grow-1 submit-status" name="{{ type }}" action="/post/{{ type }}" method="post" id="tab_{{ type }}_{{ book.id }}{{ reply_parent.id }}">
|
<form
|
||||||
|
class="is-flex-grow-1{% if not no_script %} submit-status{% endif %}"
|
||||||
|
name="{{ type }}"
|
||||||
|
action="/post/{{ type }}"
|
||||||
|
method="post"
|
||||||
|
id="tab_{{ type }}_{{ book.id }}{{ reply_parent.id }}"
|
||||||
|
>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
|
Loading…
Reference in a new issue