|
|
@@ -66,10 +66,12 @@ |
|
|
|
</div> |
|
|
|
{% endif %}#} |
|
|
|
|
|
|
|
{% set labelHelp = 'field.'~easyadmin['entity']['name']~'.'~name~'Help' %} |
|
|
|
{% if labelHelp|trans({}, 'lcshop') == labelHelp %}{% set labelHelp = 'form.field.default.'~name~'Help' %}{% endif %} |
|
|
|
{% if labelHelp|trans({}, 'lcshop') != labelHelp %} |
|
|
|
<small class="form-text text-muted">{{ labelHelp|trans({}, 'lcshop')|raw }}</small> |
|
|
|
{% if easyadmin is defined %} |
|
|
|
{% set labelHelp = 'field.'~easyadmin['entity']['name']~'.'~name~'Help' %} |
|
|
|
{% if labelHelp|trans({}, 'lcshop') == labelHelp %}{% set labelHelp = 'form.field.default.'~name~'Help' %}{% endif %} |
|
|
|
{% if labelHelp|trans({}, 'lcshop') != labelHelp %} |
|
|
|
<small class="form-text text-muted">{{ labelHelp|trans({}, 'lcshop')|raw }}</small> |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{{- form_errors(form) -}} |
|
|
@@ -128,11 +130,17 @@ |
|
|
|
{% set name_trad = label|replace({'field.MerchantConfig.': ''}) %} |
|
|
|
{% set trad = name_trad|lc_trad(easyadmin['entity']['name'], 'field') %} |
|
|
|
{% else %} |
|
|
|
{% set trad = name|lc_trad(easyadmin['entity']['name'], 'field') %} |
|
|
|
{% if easyadmin is defined %} |
|
|
|
{% set trad = name|lc_trad(easyadmin['entity']['name'], 'field') %} |
|
|
|
{% else %} |
|
|
|
{% set trad = name|lc_trad('', 'field') %} |
|
|
|
{% endif %} |
|
|
|
{% endif %} |
|
|
|
|
|
|
|
{%- endif -%} |
|
|
|
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ trad }}</{{ element|default('label') }}> |
|
|
|
{% if trad is defined %} |
|
|
|
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ trad }}</{{ element|default('label') }}> |
|
|
|
{% endif %} |
|
|
|
{%- endif -%} |
|
|
|
{%- endblock form_label %} |
|
|
|
|