|
|
@@ -110,15 +110,17 @@ |
|
|
|
'%id%': id, |
|
|
|
}) %} |
|
|
|
{%- else -%} |
|
|
|
{% set label = 'form.field.'~easyadmin['entity']['name']~'.'~name %} |
|
|
|
{% if label|trans({}, 'lcshop') == label %}{% set label = 'form.field.default.'~name %}{% endif %} |
|
|
|
{% if 'field.MerchantConfig.' in label %} |
|
|
|
{% 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') %} |
|
|
|
{% endif %} |
|
|
|
{%- endif -%} |
|
|
|
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ name|lc_trad(easyadmin['entity']['name'], 'field') }}</{{ element|default('label') }}> |
|
|
|
|
|
|
|
<{{ element|default('label') }}{% if label_attr %}{% with { attr: label_attr } %}{{ block('attributes') }}{% endwith %}{% endif %}>{{ trad }}</{{ element|default('label') }}> |
|
|
|
{%- endif -%} |
|
|
|
{%- endblock form_label %} |
|
|
|
|
|
|
|
|
|
|
|
{% block easyadmin_rest %} |
|
|
|
{{- form_rest(form) -}} |
|
|
|
|