{%- block form_field -%}
    {{- form_label(form, label, opt ?? {}) -}}
    {{- form_widget(form, opt ?? {}) -}}
    {{- form_errors(form) -}}
{%- endblock form_field -%}

{%- block form_field_pho -%}
    {%- if label is empty -%}
        {%- set label = form.vars.placeholder -%}
    {%- endif -%}
    {%- set opt = opt|merge({
        label_attr: (opt.label_attr ?? {})|merge({class: (opt.label_attr.class|default('') ~ ' sr-only')|trim}),
        attr: (opt.attr ?? {})|merge({placeholder: opt.attr.placeholder|default(
            (form.vars.translation_domain is same as(false) ? label : label|trans({}, form.vars.translation_domain)) ~
            ((opt.required ?? form.vars.required) ? ' *' : '')
        )})
    }) -%}
    {#{%- set label_attr = label_attr|merge({class: (label_attr.class|default('') ~ ' sr-only')|trim}) -%}#}
    {{- form_label(form, label, opt) -}}
    {{- form_widget(form, opt) -}}
    {{- form_errors(form, opt) -}}
{%- endblock form_field_pho -%}