mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-18 14:16:45 +00:00
Make comment optional
This commit is contained in:
parent
011175a6e3
commit
0549dbaa6d
4 changed files with 4 additions and 2 deletions
|
@ -14,6 +14,6 @@ draft: an existing Status object that is providing default values for input fiel
|
||||||
id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}"
|
id="id_content_{{ type }}_{{ book.id }}{{ reply_parent.id }}"
|
||||||
placeholder="{{ placeholder }}"
|
placeholder="{{ placeholder }}"
|
||||||
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}"
|
aria-label="{% if reply_parent %}{% trans 'Reply' %}{% else %}{% trans 'Content' %}{% endif %}"
|
||||||
{% if type != "quotation" %}required{% endif %}
|
{% if not optional and type != "quotation" %}required{% endif %}
|
||||||
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{{ draft.content|default:'' }}</textarea>
|
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{{ draft.content|default:'' }}</textarea>
|
||||||
|
|
||||||
|
|
|
@ -10,6 +10,7 @@ Finish "<em>{{ book_title }}</em>"
|
||||||
|
|
||||||
{% block modal-form-open %}
|
{% block modal-form-open %}
|
||||||
<form name="finish-reading" action="{% url 'reading-status' 'finish' book.id %}" method="post">
|
<form name="finish-reading" action="{% url 'reading-status' 'finish' book.id %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block reading-dates %}
|
{% block reading-dates %}
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
<div id="reading_content_{{ local_uuid }}_{{ uuid }}">
|
<div id="reading_content_{{ local_uuid }}_{{ uuid }}">
|
||||||
<hr aria-hidden="true">
|
<hr aria-hidden="true">
|
||||||
<fieldset id="reading_content_fieldset_{{ local_uuid }}_{{ uuid }}">
|
<fieldset id="reading_content_fieldset_{{ local_uuid }}_{{ uuid }}">
|
||||||
{% include "snippets/reading_modals/form.html" %}
|
{% include "snippets/reading_modals/form.html" with optional=True %}
|
||||||
</fieldset>
|
</fieldset>
|
||||||
</div>
|
</div>
|
||||||
{% endwith %}
|
{% endwith %}
|
||||||
|
|
|
@ -10,6 +10,7 @@ Start "<em>{{ book_title }}</em>"
|
||||||
|
|
||||||
{% block modal-form-open %}
|
{% block modal-form-open %}
|
||||||
<form name="start-reading" action="{% url 'reading-status' 'start' book.id %}" method="post">
|
<form name="start-reading" action="{% url 'reading-status' 'start' book.id %}" method="post">
|
||||||
|
{% csrf_token %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block reading-dates %}
|
{% block reading-dates %}
|
||||||
|
|
Loading…
Reference in a new issue