forked from mirrors/bookwyrm
Remove requried attribute on content field in create review form
This commit is contained in:
parent
c92db85209
commit
94f4a01665
2 changed files with 1 additions and 5 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 not optional and type != "quotation" %}required{% endif %}
|
{% 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 %}{{ draft.content|default:'' }}</textarea>
|
>{% if reply_parent %}{{ reply_parent|mentions:request.user }}{% endif %}{% if mention %}@{{ mention|username }} {% endif %}{{ draft.content|default:'' }}</textarea>
|
||||||
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ draft: the content of an existing Status object to be edited (used in delete and
|
||||||
uuid: a unique identifier used to make html "id" attributes unique and clarify javascript controls
|
uuid: a unique identifier used to make html "id" attributes unique and clarify javascript controls
|
||||||
{% endcomment %}
|
{% endcomment %}
|
||||||
|
|
||||||
{% with type="review" %}
|
|
||||||
|
|
||||||
{% block pre_content_additions %}
|
{% block pre_content_additions %}
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label" for="id_name_{{ book.id }}">{% trans "Title:" %}</label>
|
<label class="label" for="id_name_{{ book.id }}">{% trans "Title:" %}</label>
|
||||||
|
@ -31,5 +29,3 @@ uuid: a unique identifier used to make html "id" attributes unique and clarify j
|
||||||
{% block content_label %}
|
{% block content_label %}
|
||||||
{% trans "Review:" %}
|
{% trans "Review:" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% endwith %}
|
|
||||||
|
|
Loading…
Reference in a new issue