{% set field_html -%}{{ field|safe }}{% endset -%}
{% if not field.field.widget.skip_output -%}
<tr>
    {% set label_att = {'class': classes.label} -%}
    {% if field.auto_id -%}
        {% do label_att.update({'for': field.auto_id}) -%}
    {% endif -%}
    {% if field.field.required -%}
        {% do tpl.add_css_classes_to_dict(label_att, 'required') -%}
    {% endif -%}
    <td{{ tpl.json_flatatt(label_att) }}>{{ field.label }}</td>

    <td class="{{ classes.field }}">
        {{ field_html|safe }}
        {# for error in field.errors -%}
        <div class="alert alert-warning">{{ error }}</div>
        {% endfor -#}
        {% if field.help_text -%}
        <p class="help-block">
            {{ field.help_text|safe }}
        </p>
        {% endif -%}
    </td>
</tr>
{% endif -%}
