forms: fix comment field to respect is_hidden attribute (#38685)
This commit is contained in:
parent
1ed06e1308
commit
283a37fb96
|
@ -1,4 +1,5 @@
|
|||
<div {% if widget.field.id %}data-field-id="{{ widget.field.id }}"{% endif %}
|
||||
{% if widget.is_hidden %}style="display: none"{% endif %}
|
||||
class="comment-field {{widget.extra_css_class|default_if_none:"" }}">
|
||||
{% block widget-content %}
|
||||
{{ widget.content|safe }}
|
||||
|
|
Loading…
Reference in New Issue