|
63 | 63 | {% endblock %} |
64 | 64 |
|
65 | 65 | {% macro render_field_contents(entity, field) %} |
66 | | - <div class="field-group {{ field.cssClass }}" {% for name, value in field.htmlAttributes %}{{ name }}="{{ value|e('html_attr') }}" {% endfor %}> |
| 66 | + <div class="field-group {{ field.cssClass }}" {% for name, value in field.htmlAttributes %}{{ name }}="{{ value|e('html') }}" {% endfor %}> |
67 | 67 | {% if field.label is same as (false) %} |
68 | 68 | {# a FALSE label value means that the field doesn't even display the <label> element; |
69 | 69 | use an empty string to not display a label but keep the <label> element to not mess with the layout #} |
|
73 | 73 | {%- if field.help is not empty -%} |
74 | 74 | data-bs-toggle="tooltip" data-bs-placement="auto" data-bs-animation="false" |
75 | 75 | data-bs-html="true" data-bs-custom-class="ea-detail-label-tooltip" |
76 | | - data-bs-title="{{ field.help|trans|e('html_attr') }}" |
| 76 | + data-bs-title="{{ field.help|trans|e('html') }}" |
77 | 77 | {%- endif -%} |
78 | 78 | {%- endset -%} |
79 | 79 |
|
|
157 | 157 | {% set tab_id_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_ID') %} |
158 | 158 | {% set tab_is_active_option_name = constant('EasyCorp\\Bundle\\EasyAdminBundle\\Field\\FormField::OPTION_TAB_IS_ACTIVE') %} |
159 | 159 |
|
160 | | - <div id="{{ field.getCustomOption(tab_id_option_name) }}" class="tab-pane {% if field.getCustomOption(tab_is_active_option_name) %}active{% endif %} {{ field.cssClass }}" {% for key, value in field.getFormTypeOption('attr') %}{{ key }}="{{ value|e('html_attr') }}"{% endfor %}> |
| 160 | + <div id="{{ field.getCustomOption(tab_id_option_name) }}" class="tab-pane {% if field.getCustomOption(tab_is_active_option_name) %}active{% endif %} {{ field.cssClass }}" {% for key, value in field.getFormTypeOption('attr') %}{{ key }}="{{ value|e('html') }}"{% endfor %}> |
161 | 161 | {% if field.help %} |
162 | 162 | <div class="content-header-help tab-help"> |
163 | 163 | {{ field.help|trans(domain = ea.i18n.translationDomain)|raw }} |
|
391 | 391 | {{ field.label|trans|raw }} |
392 | 392 |
|
393 | 393 | {% if field.help is not empty %} |
394 | | - <a tabindex="0" class="data-help" data-bs-toggle="popover" data-bs-custom-class="ea-content-help-popover" data-bs-animation="true" data-bs-html="true" data-bs-placement="right" data-bs-trigger="focus" data-bs-content="{{ field.help|trans|e('html_attr') }}"> |
| 394 | + <a tabindex="0" class="data-help" data-bs-toggle="popover" data-bs-custom-class="ea-content-help-popover" data-bs-animation="true" data-bs-html="true" data-bs-placement="right" data-bs-trigger="focus" data-bs-content="{{ field.help|trans|e('html') }}"> |
395 | 395 | <twig:ea:Icon name="internal:circle-info" /> |
396 | 396 | </a> |
397 | 397 | {% endif %} |
|
0 commit comments