Skip to content

Commit

Permalink
Merge pull request #127 from w3c/label_html
Browse files Browse the repository at this point in the history
rename option for HTML labels
  • Loading branch information
deniak authored Oct 12, 2023
2 parents b077c6b + 4be2cdb commit ed7a326
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/form/theme.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,13 @@
{% if show_label -%}
<span {% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>
{%- if translation_domain is same as(false) -%}
{%- if html_label is not defined or html_label is same as(false) -%}
{%- if label_html is not defined or label_html is same as(false) -%}
{{- label -}}
{%- else -%}
{{- label|raw -}}
{%- endif -%}
{%- else -%}
{%- if html_label is not defined or html_label is same as(false) -%}
{%- if label_html is not defined or label_html is same as(false) -%}
{{- label|trans(label_translation_parameters, translation_domain) -}}
{%- else -%}
{{- label|trans(label_translation_parameters, translation_domain)|raw -}}
Expand Down

0 comments on commit ed7a326

Please sign in to comment.