8000 {% if label is not same as(false) and required %} · symfony/symfony-docs@d6f024a · GitHub
[go: up one dir, main page]

Skip to content

Commit d6f024a

Browse files
gonzaloalonsodweaverryan
authored andcommitted
{% if label is not same as(false) and required %}
{% if label is not same as(false) and required %}
1 parent 21885a5 commit d6f024a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

form/form_customization.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -713,7 +713,7 @@ form, modify the ``use`` tag and add the following:
713713
{% block form_label %}
714714
{{ block('base_form_label') }}
715715

716-
{% if required %}
716+
{% if label is not same as(false) and required %}
717717
<span class="required" title="This field is required">*</span>
718718
{% endif %}
719719
{% endblock %}
@@ -728,7 +728,7 @@ the following:
728728
{% block form_label %}
729729
{{ parent() }}
730730

731-
{% if required %}
731+
{% if label is not same as(false) and required %}
732732
<span class="required" title="This field is required">*</span>
733733
{% endif %}
734734
{% endblock %}

0 commit comments

Comments
 (0)
0