Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d6f024a

Browse filesBrowse 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
Copy full SHA for d6f024a

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎form/form_customization.rst

Copy file name to clipboardExpand all lines: form/form_customization.rst
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.