Skip to content

Commit

Permalink
Hide required asterisk for comment field
Browse files Browse the repository at this point in the history
This removes the client side validation and means that if you click
the comment button without entering any text, it'll hit the
form validation. I think this is OK, since it shouldb't be that
common to try to add comments without putting something in the box
first.
  • Loading branch information
rebkwok committed Jul 15, 2024
1 parent 3f0f815 commit 5d3827e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airlock/templates/file_browser/group.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{% /alert %}
{% endif %}

{% form_textarea field=group_comment_form.comment placeholder=" " label="Add Comment" show_placeholder=True class="w-full max-w-lg" rows=6 required=True %}
{% form_textarea field=group_comment_form.comment placeholder=" " label="Add Comment" show_placeholder=True class="w-full max-w-lg" rows=6 required=False %}
{% if group_comment_form.visibility.field.choices|length == 1 %}
<input type="hidden" name="visibility" value="{{ group_comment_form.visibility.field.choices.0.0 }}"/>
{% else %}
Expand Down

0 comments on commit 5d3827e

Please sign in to comment.