{% load get_attribute %}
<div>
    <table class="table table-bordered table-striped table-hover">
        <thead>
            <tr>
                <td style="width: 80%">Type name</td>
                <td style="width: 20%">Actions</td>
            </tr>
        </thead>
        <tbody>
        {% for type in types %}
            <tr>
                <td templateID='{{type.current}}' >{{ type.title }}</td>
                <td>
                    <button class="btn btn-secondary insert">
                        <i class="fas fa-plus-circle"></i> Insert
                    </button>
                </td>
            </tr>
        {% empty %}
        <tr class="table-warning">
            <td colspan="2" style="text-align: center">
                <i>No types available in this section.</i>
            </td>
        </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
