{% extends "form/extended_bootstrap_layout.html.twig" %}

{% block form_label %}
    {# If parameter_envvar exists on form then show it as tooltip #}
    {% if parameter_envvar is defined and parameter_envvar is not null %}
        {%- set label_attr = label_attr|merge({title: t('settings.tooltip.overrideable_by_env', {'%env%': (parameter_envvar)|trim})}) -%}
    {% endif %}
    {{- parent() -}}
{% endblock %}

{% block checkbox_radio_label %}
    {# If parameter_envvar exists on form then show it as tooltip #}
    {% if parameter_envvar is defined and parameter_envvar is not null %}
        {%- set label_attr = label_attr|merge({title: t('settings.tooltip.overrideable_by_env', {'%env%': (parameter_envvar)|trim})}) -%}
    {% endif %}
    {{- parent() -}}
{% endblock %}

{% block tristate_label %}
    {# If parameter_envvar exists on form then show it as tooltip #}
    {% if parameter_envvar is defined and parameter_envvar is not null %}
        {%- set label_attr = label_attr|merge({title: t('settings.tooltip.overrideable_by_env', {'%env%': (parameter_envvar)|trim})}) -%}
    {% endif %}
    {{- parent() -}}
{% endblock %}
