{% load wagtailadmin_tags %}
<div class="field {{ field.field_classnames }} {{ field|fieldtype }} {{ field_classes }}">
    {{ field.label_tag }}
    <div class="field-content">
        <div class="input {{ field.input_classnames }} {{ input_classes }} ">
            {% block form_field %}
                {{ field }}
            {% endblock %}
            
            {# This span only used on rare occasions by certain types of input #}
            <span></span>
        </div>
        {% if field.help_text %}
            <p class="help">{{ field.help_text }}</p>
        {% endif %}

        {% if field.errors %}
            <p class="error-message">
                {% for error in field.errors %}
                    <span>{{ error|escape }}</span>
                {% endfor %}
            </p>
        {% endif %}
    </div>
</div>