able table-striped table-sm">
        <thead>
            {% if formset.readonly and not formset.queryset.exists %}
            {% else %}
                <tr>
                    {% for field in formset.forms.0 %}
                        {% if field.label and not field.is_hidden %}
                            <th for="{{ field.auto_id }}" class="{% if field.field.required %}requiredField{% endif %}">
                                {{ field.label }}{% if field.field.required and not field|is_checkbox %}<sp